]> git.ipfire.org Git - thirdparty/systemd.git/commit
stub: Ignore the boot counter when looking for .extra.d directory
authorValentin David <me@valentindavid.com>
Thu, 19 Oct 2023 21:13:45 +0000 (23:13 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 20 Oct 2023 15:18:09 +0000 (16:18 +0100)
commit7a876307bb64cb4cd20388229f79cf5da3fa3ec2
tree9736ce603664958a1c272ede796051dac118f3ce
parentb2942c76adc5bb6a3e073aa5cee57834ee3a9813
stub: Ignore the boot counter when looking for .extra.d directory

If `foo+3-0.efi` is booted when there are some files in `foo.efi.extra.d`,
those files are ignored. But after the boot is blessed and the system rebooted,
those file are taken into account, and the boot is different from first
boot. This behavior is a bit puzzling.

Instead we now ignore the counter and always look for the extra files in
`foo.efi.extra.d` and always boot the same way.
man/systemd-stub.xml
src/boot/efi/util.c