]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootctl: add new feature flag for indicating random seed management support
authorLennart Poettering <lennart@poettering.net>
Thu, 18 Jul 2019 18:57:23 +0000 (20:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 25 Jul 2019 15:10:51 +0000 (17:10 +0200)
src/boot/bootctl.c
src/boot/efi/loader-features.h

index 66bc3dc342bc983770df955b6d30372ff20cfaea..41a9920420016673768fa9d53fe229a573ddb68d 100644 (file)
@@ -1155,12 +1155,13 @@ static int verb_status(int argc, char *argv[], void *userdata) {
                         uint64_t flag;
                         const char *name;
                 } flags[] = {
-                        { EFI_LOADER_FEATURE_BOOT_COUNTING,           "Boot counting"                  },
-                        { EFI_LOADER_FEATURE_CONFIG_TIMEOUT,          "Menu timeout control"           },
-                        { EFI_LOADER_FEATURE_CONFIG_TIMEOUT_ONE_SHOT, "One-shot menu timeout control"  },
-                        { EFI_LOADER_FEATURE_ENTRY_DEFAULT,           "Default entry control"          },
-                        { EFI_LOADER_FEATURE_ENTRY_ONESHOT,           "One-shot entry control"         },
-                        { EFI_LOADER_FEATURE_XBOOTLDR,                "Support for XBOOTLDR partition" },
+                        { EFI_LOADER_FEATURE_BOOT_COUNTING,           "Boot counting"                         },
+                        { EFI_LOADER_FEATURE_CONFIG_TIMEOUT,          "Menu timeout control"                  },
+                        { EFI_LOADER_FEATURE_CONFIG_TIMEOUT_ONE_SHOT, "One-shot menu timeout control"         },
+                        { EFI_LOADER_FEATURE_ENTRY_DEFAULT,           "Default entry control"                 },
+                        { EFI_LOADER_FEATURE_ENTRY_ONESHOT,           "One-shot entry control"                },
+                        { EFI_LOADER_FEATURE_XBOOTLDR,                "Support for XBOOTLDR partition"        },
+                        { EFI_LOADER_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;
index 40095e28eca3c1c2a2a9bf87ce2bb118b1b04f1a..b3a1f79dfd141eaf0baa2c32a2fef3277725adec 100644 (file)
@@ -11,3 +11,4 @@
 #define EFI_LOADER_FEATURE_ENTRY_ONESHOT           (UINT64_C(1) << 3)
 #define EFI_LOADER_FEATURE_BOOT_COUNTING           (UINT64_C(1) << 4)
 #define EFI_LOADER_FEATURE_XBOOTLDR                (UINT64_C(1) << 5)
+#define EFI_LOADER_FEATURE_RANDOM_SEED             (UINT64_C(1) << 6)