Hans de Goede 9381dbe045 term/efi/console: Do not set colorstate until the first text output
GRUB_MOD_INIT(normal) does an unconditional:

  grub_env_set ("color_normal", "light-gray/black");

which triggers a grub_term_setcolorstate() call. The original version
of the "efi/console: Do not set text-mode until we actually need it" patch,
https://lists.gnu.org/archive/html/grub-devel/2018-03/msg00125.html,
protected against this by caching the requested state in
grub_console_setcolorstate() and then only applying it when the first
text output actually happens. During refactoring to move the
grub_console_setcolorstate() up higher in the grub-core/term/efi/console.c
file the code to cache the color-state + bail early was accidentally dropped.
Restore the cache the color-state + bail early behavior from the original.

Fixes: 2d7c3abd871f (efi/console: Do not set text-mode until we actually need it)

Cc: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2022-03-21 21:40:31 +01:00
..
2022-03-14 16:00:06 +01:00
2022-03-14 16:00:06 +01:00
2022-03-14 16:00:06 +01:00
2013-12-18 18:43:09 +01:00
2022-03-14 16:00:06 +01:00
2022-03-14 16:00:06 +01:00
2022-03-14 16:00:06 +01:00
2022-03-14 16:00:06 +01:00
2022-03-14 16:00:06 +01:00
2013-12-21 15:28:28 +01:00