]> git.ipfire.org Git - thirdparty/systemd.git/commit
boot: ensure profile IDs do not get leaked and overwritten when there are tries suffixes
authorLuca Boccassi <luca.boccassi@gmail.com>
Sat, 22 Nov 2025 00:25:21 +0000 (00:25 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 23 Nov 2025 02:04:51 +0000 (11:04 +0900)
commit941b91600cd57b19f4c6c8624459aec5a3e22014
tree03e0ee27abf4bbf901107eb6fbd52d508fdd4732
parent2d82ebf600916ff54e7c4397207bd430258cfd53
boot: ensure profile IDs do not get leaked and overwritten when there are tries suffixes

boot_entry_parse_tries() replaces the id, which means the id
with the profile appended is lost (leaked) and replaced by a plain filename
in case there are tries suffixes. This means the wrong order is used in
displaying the entries in the menu, as the main profile is always last
given id_without_profile has the tries suffixes and sorts higher,
while the main profile has no id_without_profile and the id sorts lower
since it does not have the tries suffix.

Follow-up for 4301ad00ef715885be5c3bdf84c152030b7d36ff
src/boot/boot.c