grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] efi term: open input console exlusively


From: Josef Bacik
Subject: [PATCH] efi term: open input console exlusively
Date: Thu, 28 Apr 2016 14:14:33 -0400

We've had issues with a bunch of our EFI machines getting random console input
from God knows where.  This stops our provisioning because the timeout countdown
stops as it thinks we pressed a button, which we most certaintly did not.  So
open the input console in exclusive mode to make sure only the guy behind the
wheel gets to type.  With this patch we can no provision these weird machines.
Thanks,

Signed-off-by: Josef Bacik <address@hidden>
---
 grub-core/term/efi/console.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grub-core/term/efi/console.c b/grub-core/term/efi/console.c
index 7d31095..5be8530 100644
--- a/grub-core/term/efi/console.c
+++ b/grub-core/term/efi/console.c
@@ -201,7 +201,7 @@ grub_efi_console_input_init (struct grub_term_input *term)
 
   text_input = 
grub_efi_open_protocol(grub_efi_system_table->console_in_handler,
                                      &text_input_ex_guid,
-                                     GRUB_EFI_OPEN_PROTOCOL_GET_PROTOCOL);
+                                     GRUB_EFI_OPEN_PROTOCOL_BY_EXCLUSIVE);
   term->data = (void *)text_input;
 
   return 0;
-- 
2.5.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]