Skip to content

Commit

Permalink
efi_loader: use well-known guid for auto-created boot option
Browse files Browse the repository at this point in the history
The boot option automatically created by efibootmgr is identified
by the special guid appended in the optional data of boot option.
The same mechanism is implemented in the EDK II reference
implementation, it uses the different guid from the one currently
U-Boot uses.
The guid indicating auto-created boot option is not defined in the
UEFI specification, but some userspace tools such as 'efivar' package
are aware of the guid used in EDK II as auto-created boot option.

So let's use the same guid as EDK II reference implementation.

Signed-off-by: Masahisa Kojima <[email protected]>
Reviewed-by: Heinrich Schuchardt <[email protected]>
  • Loading branch information
Masahisa Kojima authored and xypron committed Oct 12, 2023
1 parent c4054c1 commit c1ab046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/efi_loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ static inline efi_status_t efi_launch_capsules(void)

/* GUID for the auto generated boot menu entry */
#define EFICONFIG_AUTO_GENERATED_ENTRY_GUID \
EFI_GUID(0x38c1acc1, 0x9fc0, 0x41f0, \
0xb9, 0x01, 0xfa, 0x74, 0xd6, 0xd6, 0xe4, 0xde)
EFI_GUID(0x8108ac4e, 0x9f11, 0x4d59, \
0x85, 0x0e, 0xe2, 0x1a, 0x52, 0x2c, 0x59, 0xb2)

/* Use internal device tree when starting UEFI application */
#define EFI_FDT_USE_INTERNAL NULL
Expand Down

0 comments on commit c1ab046

Please sign in to comment.