]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
efi-autoresizecons: Don't fail the boot w/o GOP or UGA
authorkevans <kevans@FreeBSD.org>
Sat, 4 Aug 2018 06:40:18 +0000 (06:40 +0000)
committerkevans <kevans@FreeBSD.org>
Sat, 4 Aug 2018 06:40:18 +0000 (06:40 +0000)
commitccd22f43667d5000f7fb3abbf9ecaf6f01228171
tree2d5f4b88631df2b5f28b885106c9ed7ce9dec84b
parentd0428e15730b99406d541a2219e389edf499b26a
efi-autoresizecons: Don't fail the boot w/o GOP or UGA

efi-autoresizecons is currently executed for every boot. If it fails, we
risk failing the boot, and we really shouldn't do that unless we absolutely
must.

Not being able to locate GOP or UGA is not a significant enough failure to
kill the boot. We always have the option to fall back to resizing ConOut to
a higher text mode resolution (if available), so do that.

This was detected by Doug [1] while attempting a bhyve + UEFI + PXE boot.
This patch was effectively also submitted by Doug, but I expanded the
comment he had originally sent me a little bit to indicate why this is an OK
idea.

Reported by: Doug Ambrisko <ambrisko@ambrisko.com> [1]
stand/efi/loader/framebuffer.c