From f4ac8e457e5ec6eb6dce01eb1ea276bd01523340 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 19 Dec 2024 21:41:59 +0100 Subject: [PATCH] Fix grub not using the proper color and splash meh --- files_to_inject/boot/grub/grub.cfg | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/files_to_inject/boot/grub/grub.cfg b/files_to_inject/boot/grub/grub.cfg index a29042e..179813c 100644 --- a/files_to_inject/boot/grub/grub.cfg +++ b/files_to_inject/boot/grub/grub.cfg @@ -1,4 +1,10 @@ -if loadfont $prefix/font.pf2 ; then +if [ x$feature_default_font_path = xy ] ; then + font=unicode +else + font=$prefix/font.pf2 +fi + +if loadfont $font ; then set gfxmode=800x600 set gfxpayload=keep insmod efi_gop @@ -13,6 +19,9 @@ fi if background_image /isolinux/splash.png; then set color_normal=light-gray/black set color_highlight=white/black +elif background_image /splash.png; then + set color_normal=light-gray/black + set color_highlight=white/black else set menu_color_normal=cyan/blue set menu_color_highlight=white/blue