From 3d4e22e187f04c11d3c13f437f84ea494d6f69b8 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:54 -0400 Subject: [PATCH] Allow last-minute editing of interfaces file Allow this to happen before the installer completes, rather than once the system starts up. --- buildiso.sh | 2 +- install.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/buildiso.sh b/buildiso.sh index d80dc91..edaa917 100755 --- a/buildiso.sh +++ b/buildiso.sh @@ -101,7 +101,7 @@ prepare_iso() { prepare_rootfs() { echo -n "Preparing Debian live installation via debootstrap... " - SQUASHFS_PKGLIST="mdadm,lvm2,parted,gdisk,debootstrap,grub-pc,grub-efi-amd64,linux-image-amd64,sipcalc,live-boot,dosfstools" + SQUASHFS_PKGLIST="mdadm,lvm2,parted,gdisk,debootstrap,grub-pc,grub-efi-amd64,linux-image-amd64,sipcalc,live-boot,dosfstools,vim" if [[ ! -d artifacts/debootstrap ]]; then sudo /usr/sbin/debootstrap \ --include=${SQUASHFS_PKGLIST} \ diff --git a/install.sh b/install.sh index 37b595b..ceb0dae 100755 --- a/install.sh +++ b/install.sh @@ -340,6 +340,13 @@ chroot ${target} grub-install --target=${bios_target} ${target_disk} >&2 chroot ${target} grub-mkconfig -o /boot/grub/grub.cfg >&2 echo "done." +echo +echo "Edit the /etc/network/interfaces file in the target before completing setup? [y/N]" +read edit_ifaces +if [[ ${edit_ifaces} == 'y' or ${edit_ifaces} == 'Y' ]]; then + vim ${target}/etc/network/interfaces +fi + cleanup echo "-------------------------------------------------------------------------------------"