Browse Source

dmsquash-live: do not hardcode path to mount(8) in generated hook.

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.
master
Juan RP 13 years ago committed by Harald Hoyer
parent
commit
8442dc45b6
  1. 2
      modules.d/90dmsquash-live/dmsquash-live-root.sh

2
modules.d/90dmsquash-live/dmsquash-live-root.sh

@ -204,7 +204,7 @@ if [ -b "$BASE_LOOPDEV" ]; then @@ -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


Loading…
Cancel
Save