Skip to contentSkip to conversation

Create a symlink for the live image's base loop device

PATCH In review Brian C. Lane 2 participants 3 messages Dec 20, 2011 – Jan 13, 2012 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

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
index b704139..cb104e4 100755
@@ -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

A message that is not in the archive (sent off-list or not yet received): 1324419753-14324-1-git-send-email-bcl-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org

#2 lore raw
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-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 +0 -0
index b704139..cb104e4 100755

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
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-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 +0 -0
index b704139..cb104e4 100755
@@ -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.sh
 

changed 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)