Hello, first time contributor here.
I'm not experienced with mailing lists and mailing patches so just let me know if I do anything wrong :)

This patch simply allows that if GRUB_BACKGROUND and GRUB_THEME is set at the same time, both pieces of code gets generated into grub.cfg by grub-mkconfig.

If a theme is loaded, the background image will be visible inside the console.

Lxtharia



diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in
index 4e8f25702..f86b69bad 100644
--- a/util/grub.d/00_header.in
+++ b/util/grub.d/00_header.in
@@ -263,9 +263,7 @@ EOF
 set theme=(\$root)`make_system_path_relative_to_its_root $GRUB_THEME`
 export theme
 EOF
-    fi
-
-    if [ "x$GRUB_BACKGROUND" != x ] && [ -f "$GRUB_BACKGROUND" ] \
+    elif [ "x$GRUB_BACKGROUND" != x ] && [ -f "$GRUB_BACKGROUND" ] \
 	    && is_path_readable_by_grub "$GRUB_BACKGROUND"; then
 	gettext_printf "Found background: %s\n" "$GRUB_BACKGROUND" >&2
 	case "$GRUB_BACKGROUND" in 
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to