mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
uefi: T3880: support both VGA and serial consolex
(cherry picked from commit 479d2482f3cf08ab9863721784981de282b18f7b)
This commit is contained in:
parent
8c1651fa6a
commit
119d1016c6
@ -1,59 +1,36 @@
|
|||||||
set default=0
|
set default=0
|
||||||
set timeout=10
|
set timeout=10
|
||||||
|
|
||||||
loadfont $prefix/dejavu-bold-16.pf2
|
insmod serial
|
||||||
loadfont $prefix/dejavu-bold-14.pf2
|
serial --unit=0 --speed=115200
|
||||||
loadfont $prefix/unicode.pf2
|
|
||||||
set gfxmode=auto
|
insmod part_msdos
|
||||||
insmod all_video
|
insmod ext2
|
||||||
insmod gfxterm
|
insmod efi_gop
|
||||||
|
insmod efi_uga
|
||||||
insmod png
|
insmod png
|
||||||
|
|
||||||
|
loadfont /boot/grub/dejavu-bold-16.pf2
|
||||||
|
loadfont /boot/grub/dejavu-bold-14.pf2
|
||||||
|
loadfont /boot/grub/unicode.pf2
|
||||||
|
|
||||||
|
set gfxmode="640x480x16"
|
||||||
|
set gfxpayload="640x480x16"
|
||||||
|
terminal_output gfxterm
|
||||||
|
|
||||||
|
set splash_img="/isolinux/splash.png"
|
||||||
|
if [ -e ${splash_img} ]; then
|
||||||
|
background_image ${splash_img}
|
||||||
|
fi
|
||||||
|
|
||||||
|
terminal_output --append serial
|
||||||
|
terminal_input serial console
|
||||||
|
|
||||||
set color_normal=light-gray/black
|
set color_normal=light-gray/black
|
||||||
set color_highlight=white/black
|
set color_highlight=white/black
|
||||||
|
|
||||||
if [ -e /isolinux/splash.png ]; then
|
|
||||||
# binary_syslinux modifies the theme file to point to the correct
|
|
||||||
# background picture
|
|
||||||
set theme=/boot/grub/live-theme/theme.txt
|
|
||||||
elif [ -e /boot/grub/splash.png ]; then
|
|
||||||
set theme=/boot/grub/live-theme/theme.txt
|
|
||||||
else
|
|
||||||
set menu_color_normal=cyan/blue
|
|
||||||
set menu_color_highlight=white/blue
|
|
||||||
fi
|
|
||||||
|
|
||||||
terminal_output gfxterm
|
|
||||||
|
|
||||||
insmod play
|
|
||||||
play 960 440 1 0 4 440 1
|
|
||||||
|
|
||||||
# Live boot
|
# Live boot
|
||||||
LINUX_LIVE
|
LINUX_LIVE
|
||||||
|
|
||||||
# You can add more entries like this
|
|
||||||
# menuentry "Alternate live boot" {
|
|
||||||
# linux KERNEL_LIVE APPEND_LIVE custom options here
|
|
||||||
# initrd INITRD_LIVE
|
|
||||||
# }
|
|
||||||
# menuentry "Alternate graphical installer" {
|
|
||||||
# linux KERNEL_GI APPEND_GI custom options here
|
|
||||||
# initrd INITRD_GI
|
|
||||||
# }
|
|
||||||
# menuentry "Alternate textual installer" {
|
|
||||||
# linux KERNEL_DI APPEND_DI custom options here
|
|
||||||
# initrd INITRD_DI
|
|
||||||
# }
|
|
||||||
|
|
||||||
# Installer (if any)
|
# Installer (if any)
|
||||||
LINUX_INSTALL
|
LINUX_INSTALL
|
||||||
|
|
||||||
submenu 'Advanced options...' {
|
|
||||||
|
|
||||||
# More installer entries (if any)
|
|
||||||
LINUX_ADVANCED_INSTALL
|
|
||||||
|
|
||||||
# Memtest (if any)
|
|
||||||
MEMTEST
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user