Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

When loading on an EFI motherboard, make sure to load the correct video

drivers in GRUB
  • Loading branch information...
commit 909e1d3687bf17b6cd3535757a183f53b354a411 1 parent ec6e81d
@kmoore134 kmoore134 authored
Showing with 15 additions and 3 deletions.
  1. +15 −3 overlays/install-overlay/boot/grub/grub.cfg
View
18 overlays/install-overlay/boot/grub/grub.cfg
@@ -41,10 +41,22 @@ function load_video {
insmod video_cirrus
}
+
if loadfont ($root)/boot/grub/pcbsdfont.pf2 ; then
- set gfxmode=auto
- load_video
- insmod gfxterm
+ # If on a PC / BIOS platform
+ if [ x"${grub_platform}" = xpc ] ; then
+ set gfxmode=auto
+ load_video
+ insmod gfxterm
+ else
+ # EFI
+ insmod efi_gop
+ insmod gfxterm
+ insmod font
+ insmod videotest
+ insmod videoinfo
+ set gfxpayload=vga=normal
+ fi
fi
terminal_output gfxterm
insmod gfxmenu
Please sign in to comment.
Something went wrong with that request. Please try again.