summaryrefslogtreecommitdiff
path: root/src/boot/bootctl.c
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/boot/bootctl.c
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/boot/bootctl.c')
-rw-r--r--src/boot/bootctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c
index 1e862018d4..0df456827c 100644
--- a/src/boot/bootctl.c
+++ b/src/boot/bootctl.c
@@ -1808,6 +1808,7 @@ static int verb_status(int argc, char *argv[], void *userdata) {
{ EFI_STUB_FEATURE_PICK_UP_CREDENTIALS, "Picks up credentials from boot partition" },
{ EFI_STUB_FEATURE_PICK_UP_SYSEXTS, "Picks up system extension images from boot partition" },
{ EFI_STUB_FEATURE_THREE_PCRS, "Measures kernel+command line+sysexts" },
+ { EFI_STUB_FEATURE_RANDOM_SEED, "Support for passing random seed to OS" },
};
_cleanup_free_ char *fw_type = NULL, *fw_info = NULL, *loader = NULL, *loader_path = NULL, *stub = NULL;
sd_id128_t loader_part_uuid = SD_ID128_NULL;