Skip to contentSkip to conversation

We now support mounting the rootfs rw.

PATCH initramfs mailing list 1 participant 1 message Feb 24, 2009

lore
Share & tools
lore
#0 lore raw
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(-)
init +2 -1
index ee1123c..7b0c61b 100755
@@ -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