summaryrefslogtreecommitdiff
path: root/src/fundamental/efivars-fundamental.h
Commit message (Collapse)AuthorAgeFilesLines
* boot: Do not use errno.h/inttypes.hJan Janssen2023-02-211-1/+5
| | | | | | | | These are provided by libc instead of the compiler and are not supposed to be used in freestanding environments. When cross-compiling with clang and the corresponding gcc cross-toolchain is not around, clang may pick up the wrong header from the host system.
* stub: handle random seed like sd-boot doesJason A. Donenfeld2022-11-231-0/+1
| | | | | | | | | sd-stub has an opportunity to handle the seed the same way sd-boot does, which would have benefits for UKIs when sd-boot is not in use. This commit wires that up. It refactors the XBOOTLDR partition discovery to also find the ESP partition, so that it access the random seed there.
* boot: add three new boot loader feature flagsLennart Poettering2022-08-021-0/+3
| | | | | | | | | | | | | | | | | 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.
* stub: introduce StubFeatures, similar to LoaderFeaturesLennart Poettering2022-08-021-0/+7
| | | | | | | | | | | | | | systemd-boot reports its features via the LoaderFeatures EFI variable. Let's add something similar for stub features, given they have been growing. For starters only define four feature flags. One is a baseline feature we pretty much always supported (see comment in code), two are features added in one of the most recently released systemd version, and the final one, is a feature we added a few commits ago. This is useful for userspace to figure out what is supported and what not.
* fundamental: Remove types-fundamental.hJan Janssen2022-06-271-9/+1
| | | | | | | | | | | | | This removes the fundamental typedefs in favor of just using standard C types. These are all used internally anyway and also do not do anything special to warrant any redefinition to EFI types. Even for BOOLEAN we can safely use stdbool. The defition from the EFI specification is fully compatible, including making any other values than 0/1 as undefined. The exception is sd_char as those need to be char16_t. The typedef is moved to string-util-fundamental.h instead.
* boot: Add disabled secure boot mode without setup modeJan Janssen2022-01-021-0/+1
|
* sd-boot: Be more precise about secure boot modesJan Janssen2021-10-221-0/+36
Fixes: #11559