From 7c1370dcb0940ab321b8208a1c2a35368eee0976 Mon Sep 17 00:00:00 2001 From: longpanda Date: Tue, 19 Oct 2021 20:12:50 +0800 Subject: [PATCH] Fix the long delay for Tails --- IMG/cpio/ventoy/hook/debian/tails-hook.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IMG/cpio/ventoy/hook/debian/tails-hook.sh b/IMG/cpio/ventoy/hook/debian/tails-hook.sh index cb357cfe..34ef31df 100644 --- a/IMG/cpio/ventoy/hook/debian/tails-hook.sh +++ b/IMG/cpio/ventoy/hook/debian/tails-hook.sh @@ -24,8 +24,8 @@ 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 + if [ -f /scripts/init-premount/ORDER ]; then + $SED "/\/scripts\/init-premount\/partitioning/,+1d" -i /scripts/init-premount/ORDER fi else