]> git.ipfire.org Git - thirdparty/systemd.git/commit
bootctl: discover local UKI PE addons
authorEmanuele Giuseppe Esposito <eesposit@redhat.com>
Thu, 21 Sep 2023 06:21:42 +0000 (02:21 -0400)
committerEmanuele Giuseppe Esposito <eesposit@redhat.com>
Wed, 14 Feb 2024 09:58:20 +0000 (04:58 -0500)
commit122650b4a0f9af4727513ca7f21b1321e3d06a88
tree263031fc7250d49d42610a8af633d9190e163611
parentebd1a300930a21bad4a722c9115b0e8ffa7847c5
bootctl: discover local UKI PE addons

An UKI final command line is not just made of the content of .cmdline,
but also from the addons that are inserted in
/boot/efi/EFI/Linux/<UKI_NAME>.efi.extra.d (local addons) and
/boot/efi/loader/addons (global addons).

Therefore bootclt "status" and "list" should also include these addons
when printing the UKI command line.

Right now, discover addons present in
/boot/efi/EFI/Linux/<UKI_NAME>.efi.extra.d.

Example output (assume UKI_NAME=devel):
$ bootctl
ukiCmdline: console=tty0 console=ttyS0
   localAddon: devel.efi.extra.d/rpm_addon.addon.efi
      cmdline: └─this is a normal addon
 finalCmdline: console=tty0 console=ttyS0 this is a normal addon
src/shared/bootspec.c
src/shared/bootspec.h