From 996daf2fa9ee54065c7c14affae95682b5e744d9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 23 Oct 2018 13:43:10 +0200 Subject: [PATCH] sd-boot: make sure special menu items also work if menu is skipped While it doesn't really make much sense to set "auto-reboot-to-firmware" as oneshot boot item, let's still support it properly, by also dispatching such a menu item if selected. --- src/boot/efi/boot.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index e62c766335..d3a26fd7a0 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -2215,12 +2215,12 @@ EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *sys_table) { uefi_call_wrapper(BS->SetWatchdogTimer, 4, 0, 0x10000, 0, NULL); if (!menu_run(&config, &entry, loaded_image_path)) break; + } - /* run special entry like "reboot" */ - if (entry->call) { - entry->call(); - continue; - } + /* run special entry like "reboot" */ + if (entry->call) { + entry->call(); + continue; } config_entry_bump_counters(entry, root_dir);