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:
a72cae6
)
Create a symlink for the live image's base loop device
author
Brian C. Lane
<bcl@redhat.com>
Tue, 20 Dec 2011 22:22:33 +0000
(14:22 -0800)
committer
Harald Hoyer
<harald@redhat.com>
Fri, 13 Jan 2012 10:38:48 +0000
(11:38 +0100)
It is useful to know that loop device that the live image's / is mounted
from. Make a /run/initramfs/live-baseloop symlink that points to it.
Edited-By: harald@redhat.com: changed /dev/live-baseloop
to /run/initramfs/live-baseloop
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
b704139
..
cb104e4
100755
(executable)
--- a/
modules.d/90dmsquash-live/dmsquash-live-root
+++ b/
modules.d/90dmsquash-live/dmsquash-live-root
@@
-200,6
+200,9
@@
if [ -n "$ROOTFLAGS" ]; then
ROOTFLAGS="-o $ROOTFLAGS"
fi
+if [ -b "$BASE_LOOPDEV" ]; then
+ ln -s $BASE_LOOPDEV /dev/live-baseloop
+fi
ln -s /dev/mapper/live-rw /dev/root
printf '/bin/mount %s /dev/mapper/live-rw %s\n' "$ROOTFLAGS" "$NEWROOT" > $hookdir/mount/01-$$-live.sh