- Package:
- src:apt-setup
- Source:
- src:apt-setup
- Submitter:
- Stephen Gelman
- Date:
- 2023-08-23 09:42:06 UTC
- Severity:
- normal
- Tags:
I sometimes use the current stable d-i to install the n-1 release when I need to install on hardware that requires a newer kernel, then I install the backport kernel in the preseed so the system boots. With the bookworm debian-installer, my local apt repo does not get successfully added to the system. After some debugging, I determined the issue is here: https://salsa.debian.org/installer-team/apt-setup/-/blob/master/generators/60local#L46 The /etc/apt/keyrings directory wasn't added to the apt package until apt 2.4.0, but bullseye only ships with 2.2.4. The fix here is simple and I believe it to be low risk: the generator just needs to run "mkdir -p /etc/apt/keyrings" at the beginning of 60local. Since newer versions of apt already create that empty directory it will be a no-op for them. In case anyone else runs into this issue and stumbles onto this bug, I was able to work around it by adding the following to my preseed: d-i partman/early_command string printf "#!/bin/sh\nmkdir -p \$ROOT/etc/apt/keyrings\n" > /usr/lib/apt-setup/generators/02fixbug && chmod +x /usr/lib/apt-setup/generators/02fixbug I understand that the current release is the main priority of d-i but given the fix seems to be low risk it would be appreciated if it could be fixed in stable!
Hi Stephen, Stephen Gelman <ssgelm@debian.org> (2023-08-22): Thanks for filing as suggested on IRC. Given the conditions (oldstable as anticipated, but also: local repository), I'd tend to agree with the “normal” severity, which doesn't quite match the usual requirements for stable uploads… We tend to have some leeway with the release team but I wouldn't want to abuse it. Current gut feeling (after a minute or two only), would be that it wouldn't deserve an upload on its own, but if there was some other bugfixes we could probably lump it up in there. Cheers,