]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/bootspec.c
bootspec: drop ".conf" from BootEntry.filename
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 26 Dec 2017 00:35:35 +0000 (09:35 +0900)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 Dec 2017 11:12:36 +0000 (12:12 +0100)
commit263195c6ddcc4a29a90e90a73c3fd0fd01b494ca
treeb07d3a8847aa51fcd9df85c6db124ea162e5528e
parent7629744a3dbca313b55882d3a63135b2a9b27805
bootspec: drop ".conf" from BootEntry.filename

The boot loader systemd-boot removes ".conf" from file name of entry
configs, and determine which entry is the default entry.
However, bootspec, which is used by systemctl and bootctl did not
remove ".conf", then sometimes bootctl marks wrong entry as default.
This fixes the logic to choose the default entry in bootspec, to
match the logic used in systemd-boot boot loader.

Fixes #7727.
src/shared/bootspec.c