]> git.ipfire.org Git - thirdparty/grub.git/commit
video: skip 'text' gfxpayload if not supported, to fallback to default
authorMathieu Trudel-Lapierre <mathieu.tl@gmail.com>
Mon, 29 Apr 2019 17:57:02 +0000 (13:57 -0400)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 20 May 2019 11:00:44 +0000 (13:00 +0200)
commitafd6ad42971cfdb97f6dc6d0f21336d830773810
tree88968cf1d285f6a09a20ace73fc21d1b71501993
parent4ff34fefe4d99bc9511c0d9d64aacb79908d2b1c
video: skip 'text' gfxpayload if not supported, to fallback to default

On UEFI, 'text' gfxpayload is not supported, but we still reach parse_modespec()
with it, which will obviously fail. Fortunately, whatever gfxpayload is set,
we still still have the 'auto' default to fall back to. Allow getting to this
fallback by not trying to parse 'text' as a modespec.

This is because 'text' correctly doesn't parse as a modespec, and ought to have
been ignored before we got to that point, just like it is immediately picked if
we're running on a system where 'text' is a supported video mode.

Bug: https://savannah.gnu.org/bugs/index.php?56217

Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/video/video.c