From 34085e30a205d819e400685d9f5caa3edd53a299 Mon Sep 17 00:00:00 2001 From: archipelago Date: Fri, 7 Aug 2026 16:49:03 -0400 Subject: [PATCH] =?UTF-8?q?fix(iso):=20pin=20wget=20to=20v4=20AFTER=20its?= =?UTF-8?q?=20package=20installs=20=E2=80=94=20conffile=20prompt=20is=20fa?= =?UTF-8?q?tal=20otherwise?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- image-recipe/_archived/build-auto-installer-iso.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/image-recipe/_archived/build-auto-installer-iso.sh b/image-recipe/_archived/build-auto-installer-iso.sh index 453979f4..4dfa92ae 100755 --- a/image-recipe/_archived/build-auto-installer-iso.sh +++ b/image-recipe/_archived/build-auto-installer-iso.sh @@ -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/