Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] gummiboot: WaitForKeyEx hanging workaround (see systemd/systemd#3735)
@ 2020-12-10  0:14 kwshi
  2020-12-10  0:19 ` gummiboot: WaitForKeyEx hanging patch ericonr
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: kwshi @ 2020-12-10  0:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 874 bytes --]

There is a new pull request by kwshi against master on the void-packages repository

https://github.com/kwshi/void-packages gummiboot-fix-waitforkey
https://github.com/void-linux/void-packages/pull/27058

gummiboot: WaitForKeyEx hanging workaround (see systemd/systemd#3735)
I recently ran into a Gummiboot bug where pressing any key on boot causes the
boot menu to respond to that key (e.g. moves the highlighted entry if I press
down-arrow) but subsequently freeze (booting proceeds without issue if no key
is pressed andthe auto-timeout passes).  

I found a virtually identical issue on gummiboot's "parent/fork" project
systemd-boot (systemd/systemd#3632), with an alleged fix that has been merged
(systemd/systemd#3735), so I made this PR to backport that patch to gummiboot.


A patch file from https://github.com/void-linux/void-packages/pull/27058.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gummiboot-fix-waitforkey-27058.patch --]
[-- Type: text/x-diff, Size: 1240 bytes --]

From f47d82e344a0a63bbdacda518b52562c40eefff9 Mon Sep 17 00:00:00 2001
From: Kye Shi <shi.kye@gmail.com>
Date: Wed, 9 Dec 2020 16:03:36 -0800
Subject: [PATCH] gummiboot: WaitForKeyEx hanging workaround (see
 systemd/systemd#3735)

---
 srcpkgs/gummiboot/patches/fix-waitforkey.patch | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 srcpkgs/gummiboot/patches/fix-waitforkey.patch

diff --git a/srcpkgs/gummiboot/patches/fix-waitforkey.patch b/srcpkgs/gummiboot/patches/fix-waitforkey.patch
new file mode 100644
index 00000000000..de0f9f6e233
--- /dev/null
+++ b/srcpkgs/gummiboot/patches/fix-waitforkey.patch
@@ -0,0 +1,14 @@
+--- console.c	2015-03-11 16:50:35.000000000 -0700
++++ console.c	2020-12-09 15:41:19.837704801 -0800
+@@ -96,10 +96,7 @@
+ 
+         /* wait until key is pressed */
+         if (wait) {
+-                if (TextInputEx)
+-                        uefi_call_wrapper(BS->WaitForEvent, 3, 1, &TextInputEx->WaitForKeyEx, &index);
+-                else
+-                        uefi_call_wrapper(BS->WaitForEvent, 3, 1, &ST->ConIn->WaitForKey, &index);
++                uefi_call_wrapper(BS->WaitForEvent, 3, 1, &ST->ConIn->WaitForKey, &index);
+         }
+ 
+         if (TextInputEx) {

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-12-10  4:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-10  0:14 [PR PATCH] gummiboot: WaitForKeyEx hanging workaround (see systemd/systemd#3735) kwshi
2020-12-10  0:19 ` gummiboot: WaitForKeyEx hanging patch ericonr
2020-12-10  0:20 ` [PR PATCH] [Updated] " kwshi
2020-12-10  0:43 ` kwshi
2020-12-10  2:25 ` [PR PATCH] [Updated] " kwshi
2020-12-10  4:27 ` kwshi
2020-12-10  4:27 ` kwshi
2020-12-10  4:38 ` [PR PATCH] [Merged]: " ericonr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).