Blame 0032-Create-a-symlink-for-the-live-image-s-base-loop-devi.patch
|
Harald Hoyer |
3957aa |
From ce32e32f2a8288de15968c22f57fff306fa81753 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
3957aa |
From: "Brian C. Lane" <bcl@redhat.com>
|
|
Harald Hoyer |
3957aa |
Date: Tue, 20 Dec 2011 14:22:33 -0800
|
|
Harald Hoyer |
3957aa |
Subject: [PATCH] Create a symlink for the live image's base loop device
|
|
Harald Hoyer |
3957aa |
|
|
Harald Hoyer |
3957aa |
It is useful to know that loop device that the live image's / is mounted
|
|
Harald Hoyer |
3957aa |
from. Make a /run/initramfs/live-baseloop symlink that points to it.
|
|
Harald Hoyer |
3957aa |
|
|
Harald Hoyer |
3957aa |
Edited-By: harald@redhat.com: changed /dev/live-baseloop
|
|
Harald Hoyer |
3957aa |
to /run/initramfs/live-baseloop
|
|
Harald Hoyer |
3957aa |
---
|
|
Harald Hoyer |
3957aa |
modules.d/90dmsquash-live/dmsquash-live-root | 3 +++
|
|
Harald Hoyer |
3957aa |
1 files changed, 3 insertions(+), 0 deletions(-)
|
|
Harald Hoyer |
3957aa |
|
|
Harald Hoyer |
3957aa |
diff --git a/modules.d/90dmsquash-live/dmsquash-live-root b/modules.d/90dmsquash-live/dmsquash-live-root
|
|
Harald Hoyer |
3957aa |
index b704139..cb104e4 100755
|
|
Harald Hoyer |
3957aa |
--- a/modules.d/90dmsquash-live/dmsquash-live-root
|
|
Harald Hoyer |
3957aa |
+++ b/modules.d/90dmsquash-live/dmsquash-live-root
|
|
Harald Hoyer |
3957aa |
@@ -200,6 +200,9 @@ if [ -n "$ROOTFLAGS" ]; then
|
|
Harald Hoyer |
3957aa |
ROOTFLAGS="-o $ROOTFLAGS"
|
|
Harald Hoyer |
3957aa |
fi
|
|
Harald Hoyer |
3957aa |
|
|
Harald Hoyer |
3957aa |
+if [ -b "$BASE_LOOPDEV" ]; then
|
|
Harald Hoyer |
3957aa |
+ ln -s $BASE_LOOPDEV /dev/live-baseloop
|
|
Harald Hoyer |
3957aa |
+fi
|
|
Harald Hoyer |
3957aa |
ln -s /dev/mapper/live-rw /dev/root
|
|
Harald Hoyer |
3957aa |
printf '/bin/mount %s /dev/mapper/live-rw %s\n' "$ROOTFLAGS" "$NEWROOT" > $hookdir/mount/01-$$-live.sh
|
|
Harald Hoyer |
3957aa |
|