[PATCH v3] commands/efi: add command to dump all uefi runtime variables

2025-05-10 Thread khaalid cali
From: khaalid 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. If the variable content is string then dump it as string, otherwise for non string variables print them as raw hex; just th

Re: [PATCH v2] commands/efi: add a command to dump all uefi runtime variables

2025-05-10 Thread Vladimir 'phcoder' Serbinenko
> > > - About error handling i changed a place being suggested to change >GRUB_ERR_BAD_MODULE, i changed to GRUB_ERR_BUG ERR_BUG is for an internal bugs aka should never happen. ERR_IO is a better possibility. > + > + > +static void > +dump_variable_data(const char *variable_name, grub_guid_

[PATCH v2] commands/efi: add a command to dump all uefi runtime variables

2025-05-10 Thread khaalid cali
From: khaalid 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. If the variable content is string then dump it as string, otherwise for non string variables print them as raw hex; just th