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 <noreply@anthropic.com>
This commit is contained in:
Roland 2026-10-14 11:43:41 -06:00
parent 4f8426f71f
commit 3c1552be28
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
2 changed files with 10 additions and 0 deletions

View file

@ -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 \

View file

@ -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