On Mon, Aug 30, 2021 at 11:33:30AM +0200, Victor Westerhuis wrote: > Package: base-files > Version: 12 > Severity: normal > > The upgrade of base-files from 11.1 to 12 broke the use of EFI Unified > Kernel Images[1] with sd-boot. Sd-boot depends on at least one of VERSION, > VERSION_ID, or CODENAME being set[2] by dracut in the embedded > copy of (/etc|/usr/lib)/os-release to detect the file as a valid image. > > Would it be possible to set at least one of those?
No. Relaying on VERSION, VERSION_ID, or CODENAME is a bad idea. Packages uploaded for unstable right now are intented to work in a bookworm environment (when stable), so there should be no need to use "cases". If absolutely necessary, sd-boot could assume that codename is "bullseye" when undefined, but this will only work until there is a behaviour change between bullseye and bookworm in any of the tools on which sd-boot depends. This is why Depends were created. In either case, if you need to act differently according to specific things that alter the desired behaviour of sd-boot, it will be a lot better to check for those things specifically, not the Debian version. Please reassign.

