From 9061fc1b739a2d9e67d3246cfa8d8e4d7a97ee0c Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sat, 23 Mar 2013 18:58:24 +0100 Subject: check ReadKeyStroke() for EFI_SUCCESS "If a PC using gummiboot is booted without a keyboard plugged in (i.e. such as on a server), instead of following the options specified in loader.conf, it brings up the gummiboot menu without a time-out (whether one is used or not)." https://bugs.archlinux.org/task/34431 --- src/efi/gummiboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/efi/gummiboot.c b/src/efi/gummiboot.c index b97e8f5..7f09a9c 100644 --- a/src/efi/gummiboot.c +++ b/src/efi/gummiboot.c @@ -1966,7 +1966,7 @@ EFI_STATUS EFIAPI efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *sys_table) { EFI_INPUT_KEY key; err = uefi_call_wrapper(ST->ConIn->ReadKeyStroke, 2, ST->ConIn, &key); - if (err != EFI_NOT_READY) + if (err == EFI_SUCCESS) menu = TRUE; } else menu = TRUE; -- cgit v1.2.3