X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/d6eba15d71e783900fa3be07fc343404e0c0e4fc..1b5aa9c61dd5e3828df475044834bf849d0da9b6:/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..cb357cf 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/partitioning ]; then + $SED "1aexit 0" -i /scripts/init-premount/partitioning + fi + else echo "Use default hook ..." >> $VTLOG ventoy_systemd_udevd_work_around