Skip to content

Commit

Permalink
Added support for 69057
Browse files Browse the repository at this point in the history
  • Loading branch information
pocopico committed Oct 24, 2023
1 parent 70daf61 commit 01fb7be
Showing 1 changed file with 35 additions and 14 deletions.
49 changes: 35 additions & 14 deletions include/grub-template.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,27 @@ set default="0"
set timeout="5"
set timeout_style="menu"

if [ -s $prefix/grubenv ]; then
load_env --file $prefix/grubenv --skip-sig
set has_env="1"
if [ -n "${saved_entry}" ]; then
set default="${saved_entry}"
fi
else
set has_env="0"
echo "WARN: failed to load env. Default choice will NOT be saved!"
fi


function savedefault {
saved_entry="${chosen}"
save_env --file $prefix/grubenv saved_entry
}


function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}


insmod usb_keyboard
insmod part_msdos
insmod ext2
Expand All @@ -50,11 +53,29 @@ insmod efi_gop
insmod efi_uga

insmod font
if loadfont ${prefix}/unicode.pf2
insmod video_bochs
insmod video_cirrus

if loadfont ${prefix}/fonts/unicode.pf2
then
insmod gfxterm
set gfxmode=auto
load_video
insmod gfxterm
set gfxpayload=keep
terminal_output gfxterm
fi

search --set=root --fs-uuid 6234-C863 --hint hd0,msdos3

insmod png

set menu_color_normal=red/black
set menu_color_highlight=black/light-gray

if background_image /grubbkg.png; then
true
else
set menu_color_normal=red/black
set menu_color_highlight=black/light-gray
fi

0 comments on commit 01fb7be

Please sign in to comment.