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

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