Allow last-minute editing of interfaces file

Allow this to happen before the installer completes, rather than once
the system starts up.
This commit is contained in:
2023-09-01 15:41:54 -04:00
parent f986431d2c
commit 3d4e22e187
2 changed files with 8 additions and 1 deletions

View File

@@ -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 "-------------------------------------------------------------------------------------"