0004-force-terminal_output-to-console-mode.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 1969f8ff40ac1190a3a2e406d835f7abb098eb9e Mon Sep 17 00:00:00 2001
  2. From: Leah Rowe <leah@libreboot.org>
  3. Date: Sun, 5 Mar 2023 20:04:20 +0000
  4. Subject: [PATCH 1/1] force terminal_output to console mode
  5. ---
  6. grub-core/lib/legacy_parse.c | 4 ++++
  7. 1 file changed, 4 insertions(+)
  8. diff --git a/grub-core/lib/legacy_parse.c b/grub-core/lib/legacy_parse.c
  9. index fa0131a1e..5c2473130 100644
  10. --- a/grub-core/lib/legacy_parse.c
  11. +++ b/grub-core/lib/legacy_parse.c
  12. @@ -579,6 +579,9 @@ grub_legacy_parse (const char *buf, char **entryname, char **suffix)
  13. }
  14. }
  15. + console = 1; /* force console mode, for coreboot purposes, and
  16. + the old code below is disabled by commenting */
  17. +/*
  18. if (grub_memcmp (ptr, "console", sizeof ("console") - 1) == 0)
  19. console = 1;
  20. @@ -588,6 +591,7 @@ grub_legacy_parse (const char *buf, char **entryname, char **suffix)
  21. hercules = 1;
  22. if (grub_memcmp (ptr, "graphics", sizeof ("graphics") - 1) == 0)
  23. graphics = 1;
  24. +*/
  25. while (*ptr && !grub_isspace (*ptr))
  26. ptr++;
  27. while (*ptr && grub_isspace (*ptr))
  28. --
  29. 2.39.2