We now support mounting the rootfs rw.
authorVictor Lowther <victor.lowther@gmail.com>
Sat, 21 Feb 2009 16:24:30 +0000 (08:24 -0800)
committerDave Jones <davej@redhat.com>
Mon, 23 Feb 2009 18:22:01 +0000 (13:22 -0500)
init

diff --git a/init b/init
index ee1123c..7b0c61b 100755 (executable)
--- a/init
+++ b/init
@@ -79,9 +79,10 @@ udevadm settle --timeout=30
 source_all pre-mount
 
 echo "Trying to mount rootfs $root"
+rwopt="$(getarg rw)" || rwopt="ro"
 [ -e "$root" ] || emergency_shell
 ln -s "$root" /dev/root    
-mount -o ro /dev/root $NEWROOT || emergency_shell
+mount -o $rwopt /dev/root $NEWROOT || emergency_shell
 
 INIT=$(getarg init)
 [ "$INIT" ] || {