Theme the EFI Grub menu

This commit is contained in:
Joshua Boniface 2019-06-15 17:24:14 -04:00
parent cf869ef24a
commit 6454844766
4 changed files with 29 additions and 14 deletions

View File

@ -130,8 +130,9 @@ prepare_rootfs() {
build_iso() {
echo -n "Copying live boot configurations... "
sudo cp -a grub.cfg ${tempdir}/installer/boot/grub/grub.cfg &>/dev/null || fail "Error copying grub.cfg file."
sudo cp -a theme.txt ${tempdir}/installer/boot/grub/theme.txt &>/dev/null || fail "Error copying theme.txt file."
sudo cp -a isolinux.cfg ${tempdir}/installer/isolinux/isolinux.cfg &>/dev/null || fail "Error copying isolinux.cfg file."
sudo cp -a splash.png ${tempdir}/installer/isolinux/splash.png &>/dev/null || fail "Error copying splash.png file."
sudo cp -a splash.png ${tempdir}/installer/splash.png &>/dev/null || fail "Error copying splash.png file."
echo "done."
echo -n "Creating LiveCD ISO... "

View File

@ -10,16 +10,8 @@ if loadfont $prefix/font.pf2 ; then
terminal_output gfxterm
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
fi
background_image /splash.png
set theme=($root)/boot/grub/theme.txt
insmod play
play 960 440 1 0 4 440 1
@ -28,7 +20,7 @@ set loopback="findiso=${iso_path}"
fi
set timeout=10
menuentry "PVC Live Installer TEST" {
menuentry "PVC Live Installer" {
linux /live/vmlinuz boot=live components splash quiet "${loopback}"
initrd /live/initrd.img
}

View File

@ -4,7 +4,7 @@ timeout 100
UI vesamenu.c32
MENU background splash.png
MENU background /splash.png
MENU color title * #FFFFFFFF *
MENU color border * #00000000 #00000000 none
MENU color sel * #ffffffff #76a1d0ff *

22
theme.txt Normal file
View File

@ -0,0 +1,22 @@
title-text: ""
desktop-image: "/splash.png"
terminal-width: "800"
terminal-height: "600"
+ boot_menu {
top = 40%
left = 24%
width = 60%
height = 20%
item_color = "#AAAAAA"
selected_item_color = "#FFFFFF"
item_spacing = 1
}
+ progress_bar {
id = "__timeout__"
top = 90%
left = 30%
width = 40%
height = 1
bg_color = "#000000"
fg_color = "#4444DD"
}