Cyril Brulebois <ki…@debian.org> (2026-11-23):
> Regarding the implementation, we could have ca-certificates-udeb augmented
> with metadata but that would require an extra upload, so adjusting the
> build system in debian-installer looks easier. At the moment we're pulling
> this package everywhere anyway:
>
> $ git grep ca-certificates-udeb
> build/pkg-lists/base:ca-certificates-udeb
>
> Seeing how build/Makefile and other helpers routinely use `dpkg-deb
> --info`, I don't think it would be crazy to use `dpkg-deb --contents` to
> obtain the list of files shipped by ca-certificates-udeb and generate a
> file to be picked up for a final cleanup.
It's even easier: while we don't keep .list files, they do exist in the
working tree, and that's trivially massaged into what we need.
> I'm fine with looking into implementing this.
Please find attached two patches:
- debian-installer.patch generates a list of certificate filenames out
of the udeb's .list file; focusing on *.crt is sufficient as that's
what getting copied to /target (no need to deal with symlinks,
c_rehash, etc. as far as I can tell).
- base-installer.patch consumes that list if it exists, logs deletions
and executes update-ca-certificates if there are any deletions.
Building a netboot-gtk image with the first patch (plus those found in
the kibi/trixie-proposed-updates branch to give me a little preseeding
flexibility[*], using my own repository and my own signing key), then
preseeding the URL to a local repository that contains all trixie udebs
plus base-installer modified with the second patch… seems to yield the
desired results.
(a) The following means we use the unmodified base-installer, and that
results in 148 certificates under /usr/local/share/ca-certificates
(current situation):
mirror/protocol=https
mirror/https/hostname=deb.debian.org
mirror/https/directory=/debian
mirror/udeb/https/hostname=deb.debian.org [*]
I wasn't expecting any surprises here (shipping an extra file…), the
goal was mainly confirming I was able to reproduce the current issue
and use it as a comparison point.
(b) The following means we use the modified base-installer, and that
results in a log line that mentions the 148 deletions, in an empty
/usr/local/share/ca-certificates directory, and also confirmation
ca-certificates.crt was refreshed (which matters every time
ca-certificates drops certificates after the installer was built):
mirror/protocol=https
mirror/https/hostname=deb.debian.org
mirror/https/directory=/debian
mirror/udeb/https/hostname=apt.debamax.com [*]
For the avoidance of doubt, full syslog output:
# tail /var/log/installer/syslog
Nov 23 11:39:34 finish-install: info: Running /usr/lib/finish-install.d/90base-installer
Nov 23 11:39:34 finish-install: I: deleted 148 official certificates
Nov 23 11:39:34 finish-install: Updating certificates in /etc/ssl/certs...
Nov 23 11:39:35 finish-install: rehash: warning: skipping ca-certificates.crt, it does not contain exactly one certificate or CRL
Nov 23 11:39:35 finish-install: 148 added, 0 removed; done.
Nov 23 11:39:35 finish-install: Running hooks in /etc/ca-certificates/update.d...
Nov 23 11:39:35 finish-install: done.
Nov 23 11:39:35 finish-install: info: Running /usr/lib/finish-install.d/90console
Nov 23 11:39:35 finish-install: info: Running /usr/lib/finish-install.d/94random-seed
Nov 23 11:39:35 finish-install: info: Running /usr/lib/finish-install.d/94save-logs
What do people think?
<disclaimer>
Building and testing restricted to the following so far (manual build of
a single target, with all components from trixie), but assuming we go
ahead with this proposed plan, we'll get more exposure via daily builds
soon enough.
make -C build rebuild_netboot-gtk USE_UDEBS_FROM=trixie
</disclaimer>
Cheers,
--
Cyril Brulebois (ki…@debian.org) <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant