summaryrefslogtreecommitdiff
path: root/src/fundamental
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-11-18 02:49:16 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2022-11-23 00:56:45 +0100
commit0a1d8ac77a21ae0741bdf4af08f3a71354805ff1 (patch)
tree618f16fec40f4b56ae2550b930d5f3935495c9dd /src/fundamental
parent0c14c45e5c00bbaed81566ace8f0d0c70cfe6392 (diff)
downloadsystemd-0a1d8ac77a21ae0741bdf4af08f3a71354805ff1.tar.gz
stub: handle random seed like sd-boot does
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.
Diffstat (limited to 'src/fundamental')
-rw-r--r--src/fundamental/efivars-fundamental.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fundamental/efivars-fundamental.h b/src/fundamental/efivars-fundamental.h
index fe34e6c714..cf785f8b7d 100644
--- a/src/fundamental/efivars-fundamental.h
+++ b/src/fundamental/efivars-fundamental.h
@@ -22,6 +22,7 @@
#define EFI_STUB_FEATURE_PICK_UP_CREDENTIALS (UINT64_C(1) << 1)
#define EFI_STUB_FEATURE_PICK_UP_SYSEXTS (UINT64_C(1) << 2)
#define EFI_STUB_FEATURE_THREE_PCRS (UINT64_C(1) << 3)
+#define EFI_STUB_FEATURE_RANDOM_SEED (UINT64_C(1) << 4)
typedef enum SecureBootMode {
SECURE_BOOT_UNSUPPORTED,