From 6813e6d5064746926baed9159b0127f1ca656fd2 Mon Sep 17 00:00:00 2001 From: Dorian Date: Wed, 25 Mar 2026 21:21:27 +0000 Subject: [PATCH] fix: replace DEB822 sources with traditional sources.list for non-free-firmware MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sed commands to modify debian.sources DEB822 format were silently failing — firmware packages never got installed. Replace the entire sources config with traditional sources.list that explicitly includes non-free-firmware component. Co-Authored-By: Claude Opus 4.6 (1M context) --- image-recipe/build-auto-installer-iso.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/image-recipe/build-auto-installer-iso.sh b/image-recipe/build-auto-installer-iso.sh index c1a08498..2ad0544e 100755 --- a/image-recipe/build-auto-installer-iso.sh +++ b/image-recipe/build-auto-installer-iso.sh @@ -202,14 +202,12 @@ FROM debian:bookworm ENV DEBIAN_FRONTEND=noninteractive -# Enable non-free-firmware repo for hardware firmware (Realtek NIC, Intel WiFi, etc.) -# Bookworm Docker uses DEB822 format in /etc/apt/sources.list.d/debian.sources -RUN if [ -f /etc/apt/sources.list.d/debian.sources ]; then \ - sed -i 's/^Components: main$/Components: main non-free-firmware/' /etc/apt/sources.list.d/debian.sources; \ - elif [ -f /etc/apt/sources.list ]; then \ - sed -i 's/bookworm main$/bookworm main non-free-firmware/' /etc/apt/sources.list; \ - fi && \ - echo "deb http://deb.debian.org/debian bookworm non-free-firmware" >> /etc/apt/sources.list +# Enable non-free-firmware repo — replace DEB822 sources with traditional format +# (DEB822 sed was silently failing, so just overwrite with known-good sources.list) +RUN echo "deb http://deb.debian.org/debian bookworm main non-free-firmware" > /etc/apt/sources.list && \ + echo "deb http://deb.debian.org/debian bookworm-updates main non-free-firmware" >> /etc/apt/sources.list && \ + echo "deb http://deb.debian.org/debian-security bookworm-security main non-free-firmware" >> /etc/apt/sources.list && \ + rm -f /etc/apt/sources.list.d/debian.sources # Install all packages we need including nginx, podman, tor, and openssl (for self-signed certs) RUN apt-get update && apt-get install -y \