projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9ac929
)
We now support mounting the rootfs rw.
author
Victor Lowther
<victor.lowther@gmail.com>
Sat, 21 Feb 2009 16:24:30 +0000
(08:24 -0800)
committer
Dave Jones
<davej@redhat.com>
Mon, 23 Feb 2009 18:22:01 +0000
(13:22 -0500)
init
patch
|
blob
|
history
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" ] || {