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:
parent
aaf31e6a3f
commit
b64a241763
|
@ -101,7 +101,7 @@ prepare_iso() {
|
||||||
|
|
||||||
prepare_rootfs() {
|
prepare_rootfs() {
|
||||||
echo -n "Preparing Debian live installation via debootstrap... "
|
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
|
if [[ ! -d artifacts/debootstrap ]]; then
|
||||||
sudo /usr/sbin/debootstrap \
|
sudo /usr/sbin/debootstrap \
|
||||||
--include=${SQUASHFS_PKGLIST} \
|
--include=${SQUASHFS_PKGLIST} \
|
||||||
|
|
|
@ -340,6 +340,13 @@ chroot ${target} grub-install --target=${bios_target} ${target_disk} >&2
|
||||||
chroot ${target} grub-mkconfig -o /boot/grub/grub.cfg >&2
|
chroot ${target} grub-mkconfig -o /boot/grub/grub.cfg >&2
|
||||||
echo "done."
|
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
|
cleanup
|
||||||
|
|
||||||
echo "-------------------------------------------------------------------------------------"
|
echo "-------------------------------------------------------------------------------------"
|
||||||
|
|
Loading…
Reference in New Issue