From df430ec711d912ff7720fa7e5f76ff8c74590358 Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Mon, 15 Jun 2009 13:53:06 -0400 Subject: [PATCH] mkchroot: set debconf/dpkg env variables prior to calling customize hook ..so that we can do dpkg-reconfigures of base packages without worrying about debconf prompting us. Signed-off-by: Andres Salomon --- mkchroot.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mkchroot.sh b/mkchroot.sh index e1cb6bb..509bbdd 100755 --- a/mkchroot.sh +++ b/mkchroot.sh @@ -144,12 +144,14 @@ echo "${IMG_LOCALE}" >${ROOT_DIR}/etc/locale.gen mkdir -p ${ROOT_DIR}/etc/initramfs-tools/scripts/local-bottom cp installer ${ROOT_DIR}/etc/initramfs-tools/scripts/local-bottom/ +# make sure dpkg doesn't attempt to prompt for input +export DEBIAN_FRONTEND=noninteractive +export DEBCONF_PRIORITY=critical + # run any customizations necessary pre-package install customize_chroot_hook "$ROOT_DIR" # initialize apt -export DEBIAN_FRONTEND=noninteractive -export DEBCONF_PRIORITY=critical printf "${LOCAL_APT_MIRROR}\n" >${ROOT_DIR}/etc/apt/sources.list (chroot ${ROOT_DIR} aptitude update) -- 2.39.2