boot: add three new boot loader feature flags
authorLennart Poettering <lennart@poettering.net>
Wed, 27 Jul 2022 14:39:13 +0000 (16:39 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 2 Aug 2022 08:28:49 +0000 (10:28 +0200)
commita67f22c4a73a22312a61dd9352504cd2a960b8a8
tree89c93aadbe29b7aaab3463defb011356432d467a
parent6977ea99755efb5d2f3f8a8801199c37a521f1e2
boot: add three new boot loader feature flags

Report whether the devicetree + sort-key boot loader spec type #1
fields are supported, and whether the "@saved" pseudo-entry is
supported.

Strictly speaking, thes features have been added in versions that are
already released (250+), so by adding this those version even though
they support the features will be considered not supporting them, but
that should be OK (the opposite would be a problem though, i.e. if we'd
assume a boot loader had a feature it actually does not).

These three features are features relevant to userspace, as it allows
userspace to tweak/genereate BLS entries or set EFI vars correctly.
Other features (i.e. that have no impliciations to userspace) are not
reported.
src/boot/bootctl.c
src/boot/efi/boot.c
src/fundamental/efivars-fundamental.h