]> git.ipfire.org Git - thirdparty/systemd.git/commit
bootspec: Look at /loader/addons in XBOOTLDR 34959/head
authorAdrian Vovk <adrianvovk@gmail.com>
Tue, 1 Oct 2024 20:54:22 +0000 (22:54 +0200)
committerAdrian Vovk <adrianvovk@gmail.com>
Wed, 27 Nov 2024 03:25:29 +0000 (22:25 -0500)
commitf2751d757f76f6e50e452431815370a3a45fdfc0
tree272bd82e216b21ad3586366b3a336436ea0744e4
parentef370a3c30ca4b0a4ccf0c94867640355ba5ff52
bootspec: Look at /loader/addons in XBOOTLDR

The bootspec util-lib's handling of global addons didn't previously
match the behavior of sd-stub, and this commit corrects that.

First, bootspec didn't load global addons from the XBOOTLDR dir, but the
stub does. So, bootspec now enumerates addons in XBOOTLDR, not just ESP

Second, the stub only loads resources (including addons) from the
partition that it was found on. Thus, we must keep track of which
partition the global addons come from, and which partition each boot
entry comes from. In other words: global addons found on the ESP will
NOT apply to UKIs found in XBOOTLDR, and bootspec now reflects that.
src/bootctl/bootctl-status.c
src/fuzz/fuzz-bootspec.c
src/shared/bootspec.c
src/shared/bootspec.h