Skip to content

Commit

Permalink
Merge pull request #43 from jwr0/noninteractive
Browse files Browse the repository at this point in the history
Populate DEBIAN_FRONTEND variable in chroot, to support non-interactive installation
  • Loading branch information
mvallim committed May 18, 2022
2 parents d821ea5 + 16752c6 commit 7a4a916
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function check_host() {

# Load configuration values from file
function load_config() {
if [[ -f "$SCRIPT_DIR/config.sh" ]]; then
if [[ -f "$SCRIPT_DIR/config.sh" ]]; then
. "$SCRIPT_DIR/config.sh"
elif [[ -f "$SCRIPT_DIR/default_config.sh" ]]; then
. "$SCRIPT_DIR/default_config.sh"
Expand Down Expand Up @@ -118,10 +118,10 @@ function run_chroot() {
sudo ln -f $SCRIPT_DIR/default_config.sh chroot/root/default_config.sh
if [[ -f "$SCRIPT_DIR/config.sh" ]]; then
sudo ln -f $SCRIPT_DIR/config.sh chroot/root/config.sh
fi
fi

# Launch into chroot environment to build install image.
sudo chroot chroot /root/chroot_build.sh -
sudo chroot chroot /usr/bin/env DEBIAN_FRONTEND=${DEBIAN_FRONTEND:-readline} /root/chroot_build.sh -

# Cleanup after image changes
sudo rm -f chroot/root/chroot_build.sh
Expand Down Expand Up @@ -229,7 +229,7 @@ EOF
--locales="" \
--fonts="" \
"boot/grub/grub.cfg=isolinux/grub.cfg"

(
cd isolinux && \
dd if=/dev/zero of=efiboot.img bs=1M count=10 && \
Expand Down Expand Up @@ -317,4 +317,3 @@ for ((ii=$start_index; ii<$end_index; ii++)); do
done

echo "$0 - Initial build is done!"

0 comments on commit 7a4a916

Please sign in to comment.