Create a symlink for the live image's base loop device
PATCH 1/1 Create a symlink for the live image's base loop device
From: "Brian C. Lane" <[email protected]>
It is useful to know that loop device that the live image's / is mounted from. Make a /dev/live-baseloop symlink that points to it.
--- modules.d/90dmsquash-live/dmsquash-live-root | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
modules.d/90dmsquash-live/dmsquash-live-root +3 -0
@@ -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
Signature · 1 line
1.7.6.4
Quoted 13 lines · Brian C. Lane
From: "Brian C. Lane" <[email protected]>
It is useful to know that loop device that the live image's / is mounted from. Make a
/dev/live-baseloopsymlink that points to it.--- modules.d/90dmsquash-live/dmsquash-live-root | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)modules.d/90dmsquash-live/dmsquash-live-root +0
-0
modules.d/90dmsquash-live/dmsquash-live-root if [ -n "$ROOTFLAGS" ]; then · line 208
Quoted 9 lines
modules.d/90dmsquash-live/dmsquash-live-root +3
-0@@ -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
changed the symlink to /run/initramfs/live-baseloop, because /dev should be only be maintained by udev and the kernel
Quoted 17 lines · Harald Hoyer
Quoted 16 lines · Brian C. Lane
From: "Brian C. Lane" <[email protected]>
It is useful to know that loop device that the live image's / is mounted from. Make a
/dev/live-baseloopsymlink that points to it.--- modules.d/90dmsquash-live/dmsquash-live-root | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)modules.d/90dmsquash-live/dmsquash-live-root +0
-0@@ -200,6 +200,9 @@ if [ -n "$ROOTFLAGS" ]; then ROOTFLAGS="-o $ROOTFLAGS" fi
Quoted 9 lines
modules.d/90dmsquash-live/dmsquash-live-root if [ -n "$ROOTFLAGS" ]; then · line 208
Quoted 6 lines
modules.d/90dmsquash-live/dmsquash-live-root +3
-0+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.shchanged the symlink to
/run/initramfs/live-baseloop, because /dev should be only be maintained by udev and the kernel
Thanks, I wasn't sure exactly what to call it.
Signature · 1 line
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)