X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mkchroot.sh;h=13dcc8ca3ed33d1006de7da655e1dbc2c8fce59e;hb=bed5f0ab57664ed54d43d18afeaf92145a3417b1;hp=df9d8e7e2a414630f2df89c520da31fe71518dd6;hpb=a46758729c4558f051ef5c467ad1088243c31921;p=xodist diff --git a/mkchroot.sh b/mkchroot.sh index df9d8e7..13dcc8c 100755 --- a/mkchroot.sh +++ b/mkchroot.sh @@ -86,8 +86,6 @@ if [ "$UID" != "0" ]; then exit 1 fi -start_logging $ROOT_DIR - # load config-specific values . ./configs/${CONFIG_TYPE}/variables . ./configs/${CONFIG_TYPE}/hooks @@ -140,12 +138,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 +188,5 @@ umount ${ROOT_DIR}/dev/pts # custom cleanup stuff cleanup_chroot_hook "${ROOT_DIR}" + +exit 0