From: Lennart Poettering Date: Mon, 25 Jun 2018 16:36:40 +0000 (+0200) Subject: sd-boot: also set an ID for the reboot-into-firmware entry X-Git-Tag: v240~522^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f1ef125265ace0b3d4b229284555000e945f93c;p=platform%2Fupstream%2Fsystemd.git sd-boot: also set an ID for the reboot-into-firmware entry --- 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); }