Files
systemd/src/boot
Florian Franzen 2f53f23355 boot: case fold Type #2 entry IDs with boot counter or profile ID
config_find_entry() matches the case folded patterns from loader.conf and
the LoaderEntry* EFI variables against entry IDs with the case sensitive
efi_fnmatch(), relying on the IDs being lower case already. Type #1
entries fold their ID after the boot counter has been parsed, but Type #2
entries only did so when the file name carried no boot counter, because
boot_entry_parse_tries() rebuilds the ID from the original file name. The
ID of a secondary UKI profile was not folded either, as the profile ID
from the .profile section is appended verbatim.

Hence a UKI like EFI/Linux/Foo+3.efi, or a profile with ID=Profile1,
could never be selected via default, preferred, @saved, bootctl
set-default or systemctl reboot --boot-loader-entry=, while bootctl
(which matches case insensitively) claimed that it was the default.

Fold the ID unconditionally, like Type #1 entries do, and fold the
profile suffix as well. The file names used for renaming the boot
counter keep their case.

Follow-up for 4301ad00ef and
941b91600c.

(cherry picked from commit 1402519771a45745de3f6b7e93d08d7c96d3d65b)
2026-10-16 17:24:51 +01:00
..
2026-09-01 18:13:50 +01:00
…
2026-07-10 03:36:04 +02:00
2026-04-29 13:36:47 +02:00
…
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2026-03-20 15:27:57 +01:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
…
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2026-09-09 11:53:17 +02:00
…