]> spindle.queued.net Git - xodist/commitdiff
mkchroot: set debconf/dpkg env variables prior to calling customize hook
authorAndres Salomon <dilinger@collabora.co.uk>
Mon, 15 Jun 2009 17:53:06 +0000 (13:53 -0400)
committerAndres Salomon <dilinger@collabora.co.uk>
Mon, 15 Jun 2009 17:53:06 +0000 (13:53 -0400)
..so that we can do dpkg-reconfigures of base packages without worrying about
debconf prompting us.

Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
mkchroot.sh

index e1cb6bb2b8356c09981a2277d97cd8277c424e3a..509bbdd4de23456468d0d921e19d53346176dbed 100755 (executable)
@@ -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)