Commit bc02efc9 authored by Mike Hibler's avatar Mike Hibler
Browse files

For remote boots, remember to unmount the /images cachedir so we can

tweak the disk afterward.
parent b7c09f80
......@@ -290,6 +290,7 @@ if [ x"$ADDRESS" != x ]; then
# to put it. Done after the MBR tweak of course. Then download the URL.
#
if [ $isrem -eq 1 -a $isurl -eq 1 ]; then
echo "Downloading image \'$ADDRESS\' to /images directory ..."
$BINDIR/mkextrafs.pl -c -s 4 -r $DISK /images || {
$BINDIR/mkextrafs.pl -n -f -s 4 -r $DISK /images || {
echo "Could not create /images partition"
......@@ -336,6 +337,17 @@ if [ x"$ADDRESS" != x ]; then
fi
fstat=$?
#
# If we mounted a partition from the disk to store the image,
# we must unmount it now so that slicefix and others don't fail
# due to an in-use partition.
#
if [ $isrem -eq 1 -a $isurl -eq 1 ]; then
umount /images || {
echo "WARNING: could not unmount /images"
}
fi
#
# Turn the cache back off if we turned it on.
# Is this sufficient to ensure the cache gets flushed?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment