X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/433d854aab8e9c0904ca7e2f27aac54b83ff3b6f..f8ca8b13d37bc071db889b3df0b4bdee86e2ae2e:/IMG/cpio/ventoy/hook/debian/tails-hook.sh diff --git a/IMG/cpio/ventoy/hook/debian/tails-hook.sh b/IMG/cpio/ventoy/hook/debian/tails-hook.sh index 54a3e82..34ef31d 100644 --- a/IMG/cpio/ventoy/hook/debian/tails-hook.sh +++ b/IMG/cpio/ventoy/hook/debian/tails-hook.sh @@ -23,6 +23,11 @@ $SED "s#.*livefs_root=.*find_livefs.*#$BUSYBOX_PATH/mount -t iso9660 /dev/mapper if [ -e /init ] && $GREP -q '^mountroot$' /init; then echo "Here before mountroot ..." >> $VTLOG $SED "/^mountroot$/i\\$BUSYBOX_PATH/sh $VTOY_PATH/hook/debian/disk_mount_hook.sh" -i /init + + if [ -f /scripts/init-premount/ORDER ]; then + $SED "/\/scripts\/init-premount\/partitioning/,+1d" -i /scripts/init-premount/ORDER + fi + else echo "Use default hook ..." >> $VTLOG ventoy_systemd_udevd_work_around