From 7f1ef125265ace0b3d4b229284555000e945f93c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 25 Jun 2018 18:36:40 +0200 Subject: [PATCH] sd-boot: also set an ID for the reboot-into-firmware entry --- src/boot/efi/boot.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index 7fff880..ce8f753 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -1684,6 +1684,7 @@ static VOID config_title_generate(Config *config) { static BOOLEAN config_entry_add_call( Config *config, + CHAR16 *id, CHAR16 *title, EFI_STATUS (*call)(VOID)) { @@ -1691,6 +1692,7 @@ static BOOLEAN config_entry_add_call( entry = AllocatePool(sizeof(ConfigEntry)); *entry = (ConfigEntry) { + .id = StrDuplicate(id), .title = StrDuplicate(title), .call = call, .no_autoselect = TRUE, @@ -2132,7 +2134,7 @@ EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *sys_table) { UINT64 osind = (UINT64)*b; if (osind & EFI_OS_INDICATIONS_BOOT_TO_FW_UI) - config_entry_add_call(&config, L"Reboot Into Firmware Interface", reboot_into_firmware); + config_entry_add_call(&config, L"auto-reboot-into-firmware-ui", L"Reboot Into Firmware Interface", reboot_into_firmware); FreePool(b); } -- 2.7.4