From: Victor Lowther Date: Sat, 21 Feb 2009 16:24:30 +0000 (-0800) Subject: We now support mounting the rootfs rw. X-Git-Tag: 0.1~421 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=945a2d4df0c2a9563090a0c04f16873bcb0a3709;p=thirdparty%2Fdracut.git We now support mounting the rootfs rw. --- diff --git a/init b/init index ee1123c84..7b0c61b04 100755 --- 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" ] || {