summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-03-23 18:58:24 +0100
committerKay Sievers <kay@vrfy.org>2013-03-23 18:58:24 +0100
commit9061fc1b739a2d9e67d3246cfa8d8e4d7a97ee0c (patch)
tree9bf1a361acc8b01381edb28324a1b0ad82405d83
parent66d4d3b8b0db047bd2ea388e8c33f96e0a1e6b44 (diff)
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
-rw-r--r--src/efi/gummiboot.c2
1 files changed, 1 insertions, 1 deletions
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;