]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dmsquash-live: do not hardcode path to mount(8) in generated hook.
authorJuan RP <xtraeme@gmail.com>
Mon, 28 May 2012 14:17:28 +0000 (16:17 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 29 May 2012 07:15:34 +0000 (09:15 +0200)
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

index fdbd6f59b9db2b63c521ae57d8c3ce2e58c6b6da..990a55b1ac2ab8baf7da525e34018874b4d9a425 100755 (executable)
@@ -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