From 01fb7be80c1a09395a4af9491148486455626edf Mon Sep 17 00:00:00 2001 From: pocopico Date: Tue, 24 Oct 2023 18:11:57 +0300 Subject: [PATCH] Added support for 69057 --- include/grub-template.conf | 49 +++++++++++++++++++++++++++----------- 1 file changed, 35 insertions(+), 14 deletions(-) diff --git a/include/grub-template.conf b/include/grub-template.conf index d87fd715..143c58b8 100644 --- a/include/grub-template.conf +++ b/include/grub-template.conf @@ -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 @@ -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 +