From 3c1552be28376c02d9e07aa8bd58cf4438a61e73 Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 14 Oct 2026 11:43:41 -0600 Subject: [PATCH] Debian ISOs install Caddy from Caddy's repository Moving caddy into package-lists/ made apt read config/archives/ before ca-certificates was installed, so the HTTPS fetch of Caddy's repository failed certificate verification. apt ignores a failed repository, and the image silently got Debian's much older caddy 2.6.2 instead of 2.11. ca-certificates is now part of the bootstrap, and Debian's caddy is pinned to -1, so an unreachable Caddy repository fails the build and installed systems never switch to Debian's caddy. Co-Authored-By: Claude Opus 5.5 --- debian-live-config/build.sh | 3 +++ debian-live-config/config/archives/caddy-stable.pref | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 debian-live-config/config/archives/caddy-stable.pref diff --git a/debian-live-config/build.sh b/debian-live-config/build.sh index 60203cee..a08b744a 100755 --- a/debian-live-config/build.sh +++ b/debian-live-config/build.sh @@ -73,6 +73,8 @@ set -e # usual graphical/text installer flow. GRUB gets "Install" + "Graphical # install" + "Live" entries. noswap prevents the live system from # activating swap partitions found on the host machine's internal disks. +# ca-certificates must be in the bootstrap so apt can reach the HTTPS +# repositories in config/archives/ before the package lists are installed. lb config \ --binary-images iso-hybrid \ --mode debian \ @@ -85,6 +87,7 @@ lb config \ --updates true \ --security true \ --apt-recommends false \ + --debootstrap-options "--include=ca-certificates" \ --firmware-binary true \ --firmware-chroot true \ --win32-loader false \ diff --git a/debian-live-config/config/archives/caddy-stable.pref b/debian-live-config/config/archives/caddy-stable.pref new file mode 100644 index 00000000..f46dcd6d --- /dev/null +++ b/debian-live-config/config/archives/caddy-stable.pref @@ -0,0 +1,7 @@ +# Only ever install Caddy from Caddy's repository (caddy-stable.list). Debian +# ships a much older caddy; if Caddy's repository is unreachable, the build +# fails instead of silently falling back to it, and installed systems never +# switch to it. +Package: caddy +Pin: release o=Debian +Pin-Priority: -1