fix(iso): pin wget to v4 AFTER its package installs — conffile prompt is fatal otherwise

Build #189 proved the IPv4 fix works (downloads all succeeded) and proved
my own edit wrong: appending inet4_only to /etc/wgetrc before wget's
package landed made dpkg's conffile prompt hit EOF, leaving wget and
debootstrap unconfigured. Moved the pin below the apt install.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
archipelago
2026-08-07 16:49:03 -04:00
co-authored by Claude
parent e36f36ee09
commit 34085e30a2
@@ -838,13 +838,17 @@ set -e
# answers AAAA first, wget tries v6 with long timeouts, and debootstrap's
# per-package fetch fails ("Couldn't download packages", repro'd twice on
# 2026-08-07). Force v4 for every retrieval tool this script drives.
echo 'inet4_only = on' >> /etc/wgetrc
APT_V4='-o Acquire::ForceIPv4=true'
apt-get $APT_V4 update -qq
apt-get $APT_V4 install -y -qq debootstrap squashfs-tools initramfs-tools dosfstools mtools \
grub-efi-amd64-bin grub-pc-bin grub-common isolinux syslinux-common
# wget gets its v4 pin AFTER its package is installed — editing /etc/wgetrc
# beforehand makes dpkg's conffile prompt fatal on a non-interactive shell
# ("end of file on stdin at conffile prompt", repro'd on build #189).
echo 'inet4_only = on' >> /etc/wgetrc
echo " [container] Running debootstrap --variant=minbase..."
# ifupdown + isc-dhcp-client added because live-boot's /init writes
# /etc/network/interfaces on the target — without ifupdown, /etc/network/