]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Fix the long delay for Tails
authorlongpanda <admin@ventoy.net>
Tue, 19 Oct 2021 11:48:46 +0000 (19:48 +0800)
committerlongpanda <admin@ventoy.net>
Tue, 19 Oct 2021 11:48:46 +0000 (19:48 +0800)
IMG/cpio/ventoy/hook/debian/tails-hook.sh

index 54a3e822c019b6ac57559f6e760bb6b50c7fab11..cb357cfed07e3d41c56721cfd63cfb9e5150dbed 100644 (file)
@@ -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