* [PATCH] Create a symlink for the live image's base loop device
@ 2011-12-20 22:22 Brian C. Lane
[not found] ` <1324419753-14324-1-git-send-email-bcl-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Brian C. Lane @ 2011-12-20 22:22 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
From: "Brian C. Lane" <bcl-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
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(-)
diff --git a/modules.d/90dmsquash-live/dmsquash-live-root b/modules.d/90dmsquash-live/dmsquash-live-root
index b704139..cb104e4 100755
--- 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
--
1.7.6.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Create a symlink for the live image's base loop device
[not found] ` <1324419753-14324-1-git-send-email-bcl-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2012-01-13 10:41 ` Harald Hoyer
[not found] ` <4F100A64.5050607-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Harald Hoyer @ 2012-01-13 10:41 UTC (permalink / raw)
To: Brian C. Lane; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA
On 20.12.2011 23:22, Brian C. Lane wrote:
> From: "Brian C. Lane" <bcl-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
>
> 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(-)
>
> diff --git a/modules.d/90dmsquash-live/dmsquash-live-root b/modules.d/90dmsquash-live/dmsquash-live-root
> index b704139..cb104e4 100755
> --- 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
>
changed the symlink to /run/initramfs/live-baseloop, because /dev should be only
be maintained by udev and the kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Create a symlink for the live image's base loop device
[not found] ` <4F100A64.5050607-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2012-01-13 12:06 ` Brian C. Lane
0 siblings, 0 replies; 3+ messages in thread
From: Brian C. Lane @ 2012-01-13 12:06 UTC (permalink / raw)
To: Harald Hoyer; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 1344 bytes --]
On Fri, Jan 13, 2012 at 11:41:40AM +0100, Harald Hoyer wrote:
> On 20.12.2011 23:22, Brian C. Lane wrote:
> > From: "Brian C. Lane" <bcl-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> >
> > 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(-)
> >
> > diff --git a/modules.d/90dmsquash-live/dmsquash-live-root b/modules.d/90dmsquash-live/dmsquash-live-root
> > index b704139..cb104e4 100755
> > --- 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
> >
>
> 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.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
[-- Attachment #2: Type: application/pgp-signature, Size: 482 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-13 12:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-20 22:22 [PATCH] Create a symlink for the live image's base loop device Brian C. Lane
[not found] ` <1324419753-14324-1-git-send-email-bcl-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-01-13 10:41 ` Harald Hoyer
[not found] ` <4F100A64.5050607-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-01-13 12:06 ` Brian C. Lane
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.