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:
58ffd15
)
teach dmsquash-live-root to use rootflags
author
Joey Boggs
<jboggs@redhat.com>
Fri, 26 Mar 2010 14:01:16 +0000
(10:01 -0400)
committer
Harald Hoyer
<harald@redhat.com>
Tue, 13 Apr 2010 14:02:10 +0000
(16:02 +0200)
modules.d/90dmsquash-live/dmsquash-live-root
patch
|
blob
|
history
diff --git
a/modules.d/90dmsquash-live/dmsquash-live-root
b/modules.d/90dmsquash-live/dmsquash-live-root
index
b1754dc
..
c98cdef
100755
(executable)
--- a/
modules.d/90dmsquash-live/dmsquash-live-root
+++ b/
modules.d/90dmsquash-live/dmsquash-live-root
@@
-172,7
+172,12
@@
if [ -b "$OSMIN_LOOPDEV" ]; then
echo "0 $( blockdev --getsz $BASE_LOOPDEV ) snapshot $BASE_LOOPDEV $OSMIN_LOOPDEV p 8" | dmsetup create --readonly live-osimg-min
fi
+ROOTFLAGS="$(getarg rootflags)"
+if [ -n "$ROOTFLAGS" ]; then
+ ROOTFLAGS="-o $ROOTFLAGS"
+fi
+
ln -s /dev/mapper/live-rw /dev/root
-printf '/bin/mount
/dev/mapper/live-rw %s\n'
"$NEWROOT" > /mount/01-$$-live.sh
+printf '/bin/mount
%s /dev/mapper/live-rw %s\n' "$ROOTFLAGS"
"$NEWROOT" > /mount/01-$$-live.sh
exit 0