summaryrefslogtreecommitdiff
path: root/resources/grub/config
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2021-10-31 00:54:53 +0100
committerLeah Rowe <leah@libreboot.org>2021-10-31 07:13:46 +0000
commit62fa042a17846f1619f257f878b928364d96b3a8 (patch)
tree770413cb2bcdc70b84aa7eaeb6336a64e41bbbef /resources/grub/config
parent49198fe3d11817462f48ce3d3d567b2d8cd95462 (diff)
re-add grub backgrounds and update grub. mitigate missing characters
mitigate missing characters in unifont for border/arrow characters. this saves space because now it is no longer necessary to add a custom font the background added has the libreboot logo on it, and it's 10kb in size unlike the old gnulove background that was hundreds of KB
Diffstat (limited to 'resources/grub/config')
-rw-r--r--resources/grub/config/grub.cfg8
1 files changed, 8 insertions, 0 deletions
diff --git a/resources/grub/config/grub.cfg b/resources/grub/config/grub.cfg
index b4d222cb..7d889989 100644
--- a/resources/grub/config/grub.cfg
+++ b/resources/grub/config/grub.cfg
@@ -23,6 +23,14 @@ terminal_output --append cbmemc
gfxpayload=keep
terminal_output --append gfxterm
+if [ -f (cbfsdisk)/background.png ]; then
+ insmod png
+ background_image (cbfsdisk)/background.png
+elif [ -f (cbfsdisk)/background.jpg ]; then
+ insmod jpeg
+ background_image (cbfsdisk)/background.jpg
+fi
+
# Default to first option, automatically boot after 1 second
set default="0"
set timeout=10