]> git.ipfire.org Git - thirdparty/systemd.git/commit
bootctl: discover and pring global UKI PE addons 28761/head
authorEmanuele Giuseppe Esposito <eesposit@redhat.com>
Thu, 21 Sep 2023 11:59:24 +0000 (07:59 -0400)
committerEmanuele Giuseppe Esposito <eesposit@redhat.com>
Wed, 14 Feb 2024 09:58:28 +0000 (04:58 -0500)
commit01fd84111f18c0ef342015402a3b236acae70f3d
tree8855a6056e969346a019cf04883de717b322a7f6
parent122650b4a0f9af4727513ca7f21b1321e3d06a88
bootctl: discover and pring global 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.

Support for /boot/efi/EFI/Linux/<UKI_NAME>.efi.extra.d is already present,
so now cover addons present in /boot/efi/loader/addons (global addons).

Example (assume UKI_NAME=devel):
$ bootctl
ukiCmdline: console=tty0 console=ttyS0
  globalAddon: loader/addons/global.addon.efi
      cmdline: └─quiet
   localAddon: devel.efi.extra.d/rpm_addon.addon.efi
      cmdline: └─this is a normal addon
 finalCmdline: console=tty0 console=ttyS0 quiet this is a normal addon
src/boot/bootctl-status.c
src/shared/bootspec.c
src/shared/bootspec.h