summaryrefslogtreecommitdiff
path: root/resources/grub/patches
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-03-05 21:25:35 +0000
committerLeah Rowe <leah@libreboot.org>2023-03-05 21:25:35 +0000
commite2945f02b7b80a6ebffbc0aeccec43a0cbabdbe0 (patch)
tree33e49abb7ee6e76067825bde08baecb788002a5f /resources/grub/patches
parent909d3b31db806b39a7ade0ce2572aca27a20a525 (diff)
payload/grub: force terminal_output to console
Diffstat (limited to 'resources/grub/patches')
-rw-r--r--resources/grub/patches/0004-force-terminal_output-to-console-mode.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/resources/grub/patches/0004-force-terminal_output-to-console-mode.patch b/resources/grub/patches/0004-force-terminal_output-to-console-mode.patch
new file mode 100644
index 00000000..1f72a439
--- /dev/null
+++ b/resources/grub/patches/0004-force-terminal_output-to-console-mode.patch
@@ -0,0 +1,34 @@
+From 1969f8ff40ac1190a3a2e406d835f7abb098eb9e Mon Sep 17 00:00:00 2001
+From: Leah Rowe <leah@libreboot.org>
+Date: Sun, 5 Mar 2023 20:04:20 +0000
+Subject: [PATCH 1/1] force terminal_output to console mode
+
+---
+ grub-core/lib/legacy_parse.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/grub-core/lib/legacy_parse.c b/grub-core/lib/legacy_parse.c
+index fa0131a1e..5c2473130 100644
+--- a/grub-core/lib/legacy_parse.c
++++ b/grub-core/lib/legacy_parse.c
+@@ -579,6 +579,9 @@ grub_legacy_parse (const char *buf, char **entryname, char **suffix)
+ }
+ }
+
++ console = 1; /* force console mode, for coreboot purposes, and
++ the old code below is disabled by commenting */
++/*
+ if (grub_memcmp (ptr, "console", sizeof ("console") - 1) == 0)
+ console = 1;
+
+@@ -588,6 +591,7 @@ grub_legacy_parse (const char *buf, char **entryname, char **suffix)
+ hercules = 1;
+ if (grub_memcmp (ptr, "graphics", sizeof ("graphics") - 1) == 0)
+ graphics = 1;
++*/
+ while (*ptr && !grub_isspace (*ptr))
+ ptr++;
+ while (*ptr && grub_isspace (*ptr))
+--
+2.39.2
+