[Top][All Lists]

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

[PATCH] video: Allow to set pure 'text' mode in case of EFI

From: Dennis Chen
Subject: [PATCH] video: Allow to set pure 'text' mode in case of EFI
Date: Fri, 13 Oct 2017 10:18:17 +0800

Current code doesn't accept a pure text mode when booting
from UEFI firmware on i386 platform, this will result in
below error message even we already have 'set gfxpayload=text'
configured: "no suitable video mode found". This often happens
when we boot a VM which UEFI firmware doesn't include 'suitable'
video modes.

UEFI spec doesn't tell it will not support pure text mode explicitly,
if GRUB2 strictly forbid this mode that means UEFI has to provide
a so-called 'suitable video mode'.

Signed-off-by: Dennis Chen <address@hidden>
 grub-core/loader/i386/linux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grub-core/loader/i386/linux.c b/grub-core/loader/i386/linux.c
index 5fdfea3..8cf1086 100644
--- a/grub-core/loader/i386/linux.c
+++ b/grub-core/loader/i386/linux.c
@@ -49,7 +49,7 @@ GRUB_MOD_LICENSE ("GPLv3+");
 #include <grub/efi/efi.h>
 #define HAS_VGA_TEXT 0
 #define DEFAULT_VIDEO_MODE "auto"
 #elif defined (GRUB_MACHINE_IEEE1275)
 #include <grub/ieee1275/ieee1275.h>
 #define HAS_VGA_TEXT 0

reply via email to

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