video: Allow to set pure 'text' mode in case of EFI
PATCH 1/1 video: Allow to set pure 'text' mode in case of EFI
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 <[email protected]>
--- grub-core/loader/i386/linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
grub-core/loader/i386/linux.c +1 -1
@@ -49,7 +49,7 @@ GRUB_MOD_LICENSE ("GPLv3+");#include <grub/efi/efi.h> #define HAS_VGA_TEXT 0#define DEFAULT_VIDEO_MODE "auto" -#define ACCEPTS_PURE_TEXT 0 +#define ACCEPTS_PURE_TEXT 1#elif defined (GRUB_MACHINE_IEEE1275 )#include <grub/ieee1275/ieee1275.h> #define HAS_VGA_TEXT 0
Signature · 1 line
2.7.4