]> spindle.queued.net Git - xodist/blobdiff - mkchroot.sh
make sure all scripts end w/ exit 0
[xodist] / mkchroot.sh
index df9d8e7e2a414630f2df89c520da31fe71518dd6..83f51d476b4a78ed86cda37ff22dac32bb2718e7 100755 (executable)
@@ -140,12 +140,18 @@ EOF
 # 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)
 
@@ -184,3 +190,5 @@ umount ${ROOT_DIR}/dev/pts
 
 # custom cleanup stuff
 cleanup_chroot_hook "${ROOT_DIR}"
+
+exit 0