* [PATCH 2/2] dmsquash-live: do not hardcode path to mount(8) in generated hook.
@ 2012-05-28 14:17 Juan RP
[not found] ` <20120528161728.3425f35f.xtraeme-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Juan RP @ 2012-05-28 14:17 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
In some cases (at least in mine) mount(8) is in /usr/bin/mount and
not in /bin/mount as dmsquash-live-root.sh expects. PATH is set to
/usr/bin:/usr/sbin:/sbin:/bin in that script anyway.
---
modules.d/90dmsquash-live/dmsquash-live-root.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules.d/90dmsquash-live/dmsquash-live-root.sh b/modules.d/90dmsquash-live/dmsquash-live-root.sh
index fdbd6f5..990a55b 100755
--- a/modules.d/90dmsquash-live/dmsquash-live-root.sh
+++ b/modules.d/90dmsquash-live/dmsquash-live-root.sh
@@ -204,7 +204,7 @@ if [ -b "$BASE_LOOPDEV" ]; then
ln -s $BASE_LOOPDEV /run/initramfs/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
+printf 'mount %s /dev/mapper/live-rw %s\n' "$ROOTFLAGS" "$NEWROOT" > $hookdir/mount/01-$$-live.sh
need_shutdown
--
1.7.10.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] dmsquash-live: do not hardcode path to mount(8) in generated hook.
[not found] ` <20120528161728.3425f35f.xtraeme-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2012-05-29 7:13 ` Harald Hoyer
0 siblings, 0 replies; 2+ messages in thread
From: Harald Hoyer @ 2012-05-29 7:13 UTC (permalink / raw)
To: Juan RP; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA
Am 28.05.2012 16:17, schrieb Juan RP:
>
> In some cases (at least in mine) mount(8) is in /usr/bin/mount and
> not in /bin/mount as dmsquash-live-root.sh expects. PATH is set to
> /usr/bin:/usr/sbin:/sbin:/bin in that script anyway.
> ---
> modules.d/90dmsquash-live/dmsquash-live-root.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/modules.d/90dmsquash-live/dmsquash-live-root.sh b/modules.d/90dmsquash-live/dmsquash-live-root.sh
> index fdbd6f5..990a55b 100755
> --- a/modules.d/90dmsquash-live/dmsquash-live-root.sh
> +++ b/modules.d/90dmsquash-live/dmsquash-live-root.sh
> @@ -204,7 +204,7 @@ if [ -b "$BASE_LOOPDEV" ]; then
> ln -s $BASE_LOOPDEV /run/initramfs/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
> +printf 'mount %s /dev/mapper/live-rw %s\n' "$ROOTFLAGS" "$NEWROOT" > $hookdir/mount/01-$$-live.sh
>
> need_shutdown
>
Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-29 7:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-28 14:17 [PATCH 2/2] dmsquash-live: do not hardcode path to mount(8) in generated hook Juan RP
[not found] ` <20120528161728.3425f35f.xtraeme-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-05-29 7:13 ` Harald Hoyer
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.