Gitweb:     
http://git.kernel.org/?p=linux/kernel/git/davej/dracut.git;a=commit;h=945a2d4df0c2a9563090a0c04f16873bcb0a3709
Commit:     945a2d4df0c2a9563090a0c04f16873bcb0a3709
Parent:     c9ac929ddff9aec5c9951815774a7bcb5d120df9
Author:     Victor Lowther <[email protected]>
AuthorDate: Sat Feb 21 08:24:30 2009 -0800
Committer:  Dave Jones <[email protected]>
CommitDate: Mon Feb 23 13:22:01 2009 -0500

    We now support mounting the rootfs rw.
---
 init |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/init b/init
index ee1123c..7b0c61b 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" ] || {
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to