exit 1
fi
-start_logging $ROOT_DIR
-
# load config-specific values
. ./configs/${CONFIG_TYPE}/variables
. ./configs/${CONFIG_TYPE}/hooks
# set the default locale
echo "${IMG_LOCALE}" >${ROOT_DIR}/etc/locale.gen
+# add support for installation onto a block device
+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)
# custom cleanup stuff
cleanup_chroot_hook "${ROOT_DIR}"
+
+exit 0