fn parse_efi_var(reader: impl Read) -> Result<String, EfiError>Expand description
Parse the raw contents of an efivarfs EFI variable into its string value.
Ref: https://www.kernel.org/doc/html/latest/filesystems/efivarfs.html
When a content of an UEFI variable in /sys/firmware/efi/efivars is displayed, for example using “hexdump”, pay attention that the first 4 bytes of the output represent the UEFI variable attributes, in little-endian format.
Practically the output of each efivar is composed of:
4_bytes_of_attributes + efivar_data