From 390507fff71bb72a9b01e19a43b6959441ee96cf Mon Sep 17 00:00:00 2001 From: longpanda Date: Thu, 3 Sep 2020 16:40:26 +0800 Subject: [PATCH] Fix issue #456 --- IMG/cpio/ventoy/hook/debian/ventoy-hook.sh | 8 ++++---- IMG/cpio/ventoy/ventoy_chain.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/IMG/cpio/ventoy/hook/debian/ventoy-hook.sh b/IMG/cpio/ventoy/hook/debian/ventoy-hook.sh index 161d19b7..df318e9a 100644 --- a/IMG/cpio/ventoy/hook/debian/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/debian/ventoy-hook.sh @@ -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 diff --git a/IMG/cpio/ventoy/ventoy_chain.sh b/IMG/cpio/ventoy/ventoy_chain.sh index 938f2e22..1bdc02a5 100644 --- a/IMG/cpio/ventoy/ventoy_chain.sh +++ b/IMG/cpio/ventoy/ventoy_chain.sh @@ -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