From a234ec98b8a4be9fa7ebd8e37cce4d58ec1c5473 Mon Sep 17 00:00:00 2001 From: Jeff Bilyk Date: Sat, 16 Jul 2011 22:01:44 -0400 Subject: setup-bootable: somehow a couple lines for remounting RO/RW got missed --- setup-bootable.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'setup-bootable.in') diff --git a/setup-bootable.in b/setup-bootable.in index 8026226..db388a6 100644 --- a/setup-bootable.in +++ b/setup-bootable.in @@ -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 -- cgit v1.2.3