Commit a234ec98 authored by Jeff Bilyk's avatar Jeff Bilyk

setup-bootable: somehow a couple lines for remounting RO/RW got missed

parent c67ff255
......@@ -117,7 +117,10 @@ elif [ -b "$dest" ]; then
fi
# Check for RO mounting
if [ "`grep \"$destdir\" /proc/mount | grep '(ro,'`"
if [ "`grep \"$destdir\" /proc/mount | grep '(ro,'`" == "ro" ]; then
remountneeded="Y"
mount -o remount,rw "$destdir"
fi
[ -n "$verbose" ] && echo "Using $dest as target (mounted on $destdir)"
......@@ -258,5 +261,9 @@ else
echo "Warning: Could not find the parent device for $dest"
fi
if [ "$remountneeded" == "Y" ]; then
mount -o remount,ro "$destdir"
fi
cleanup
sync
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