]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
efi-autoresizecons: Don't fail the boot w/o GOP or UGA
authorKyle Evans <kevans@FreeBSD.org>
Sat, 4 Aug 2018 06:40:18 +0000 (06:40 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Sat, 4 Aug 2018 06:40:18 +0000 (06:40 +0000)
commit37528fb4fbc5aa8de4c3d6753e6579bff7af9af7
tree2d5f4b88631df2b5f28b885106c9ed7ce9dec84b
parent1856c32ef62ab7eb1df73859501e3fa21c9beded
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