]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Fix issue #456
authorlongpanda <admin@ventoy.net>
Thu, 3 Sep 2020 08:40:26 +0000 (16:40 +0800)
committerlongpanda <admin@ventoy.net>
Thu, 3 Sep 2020 08:40:26 +0000 (16:40 +0800)
IMG/cpio/ventoy/hook/debian/ventoy-hook.sh
IMG/cpio/ventoy/ventoy_chain.sh

index 161d19b7ce073d249db842e733884447ce9adb29..df318e9a3fc63d26e8f352381ed8051fc6f737f7 100644 (file)
@@ -78,10 +78,10 @@ DISTRO=$(ventoy_get_debian_distro)
 echo "##### distribution = $DISTRO ######" >> $VTLOG
 . $VTOY_PATH/hook/debian/${DISTRO}-hook.sh
 
-
-
-
-
+if [ -f /bin/env2debconf ]; then
+    $SED "1a /bin/sh $VTOY_PATH/hook/debian/ventoy_env2debconf.sh" -i /bin/env2debconf
+    $SED "s#in *\$(set)#in \$(cat /ventoy/envset)#" -i /bin/env2debconf
+fi
 
 
 
index 938f2e22cb06a06fc101b8833600938ae08025c3..1bdc02a5469fc1e521e8997b12b18a5270c15e9b 100644 (file)
@@ -349,7 +349,7 @@ fi
 
 cd /
 
-unset VTLOG FIND GREP EGREP CAT AWK SED SLEEP HEAD
+unset VTLOG FIND GREP EGREP CAT AWK SED SLEEP HEAD vtcmdline
 
 for vtinit in $user_rdinit /init /sbin/init /linuxrc; do
     if [ -d /ventoy_rdroot ]; then