Skip to contentSkip to conversation

commands/efi: Add a command to dump all UEFI runtime variables

PATCH New Khalid Ali 1 participant 1 message Jul 21, 2025

lore
Share & tools
lore

Khalid Ali

author
#0 lore raw

PATCH v7 1/1 commands/efi: Add a command to dump all UEFI runtime variables

From: Khalid Ali <[email protected]>

This command is intended to print or dump all UEFI runtime services. The structure will look like efivar tool, since visually most people are familiar with it. All uefi variables are dumped as hex no matter what data type is.

---
 grub-core/Makefile.core.def       |   6 ++
 grub-core/commands/efi/lsefivar.c | 137 ++++++++++++++++++++++++++++++
 2 files changed, 143 insertions(+)
 create mode 100644 grub-core/commands/efi/lsefivar.c
grub-core/Makefile.core.def +6 -0
index b3f71196a..71f562a28 100644
@@ -828,6 +828,12 @@ module = {
   enable = efi;
 };
 
+module = {
+  name = lsefivar;
+  common = commands/efi/lsefivar.c;
+  enable = efi;
+};
+
 module = {
   name = efifwsetup;
   efi = commands/efi/efifwsetup.c;
grub-core/commands/efi/lsefivar.c new file +137 -0

137 lines not on this page · raw message

Signature · 7 lines
2.49.0


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel