From 4f9743107da31bd95b20ec834d8aec40a6c20990 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Tue, 11 Feb 2020 07:21:42 -0700 Subject: [PATCH] MdeModulePkg/BdsDxe: Forward any key for booting Pressing escape will bring a user to the boot manager. Pressing any other key will continue booting, forwarding the key to systemd-boot. --- MdeModulePkg/Universal/BdsDxe/BdsEntry.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Universal/BdsDxe/BdsEntry.c b/MdeModulePkg/Universal/BdsDxe/BdsEntry.c index 766dde3aae..dc7ba71ae9 100644 --- a/MdeModulePkg/Universal/BdsDxe/BdsEntry.c +++ b/MdeModulePkg/Universal/BdsDxe/BdsEntry.c @@ -330,7 +330,8 @@ BdsWait ( // Can be removed after all keyboard drivers invoke callback in timer callback. if (HotkeyTriggered != NULL) { - Status = BdsWaitForSingleEvent (HotkeyTriggered, EFI_TIMER_PERIOD_SECONDS (1)); + //Status = BdsWaitForSingleEvent (HotkeyTriggered, EFI_TIMER_PERIOD_SECONDS (1)); + Status = BdsWaitForSingleEvent (gST->ConIn->WaitForKey, EFI_TIMER_PERIOD_SECONDS (1)); if (!EFI_ERROR (Status)) { break; } @@ -1044,7 +1045,7 @@ BdsEntry ( // // BdsReadKeys() can be removed after all keyboard drivers invoke callback in timer callback. // - BdsReadKeys (); + //BdsReadKeys (); EfiBootManagerHotkeyBoot ();