Theme the EFI Grub menu
This commit is contained in:
parent
71b109eff4
commit
59455e027a
|
@ -130,8 +130,9 @@ prepare_rootfs() {
|
||||||
build_iso() {
|
build_iso() {
|
||||||
echo -n "Copying live boot configurations... "
|
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 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 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 "done."
|
||||||
|
|
||||||
echo -n "Creating LiveCD ISO... "
|
echo -n "Creating LiveCD ISO... "
|
||||||
|
|
16
grub.cfg
16
grub.cfg
|
@ -10,25 +10,17 @@ if loadfont $prefix/font.pf2 ; then
|
||||||
terminal_output gfxterm
|
terminal_output gfxterm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if background_image /isolinux/splash.png; then
|
background_image /splash.png
|
||||||
set color_normal=light-gray/black
|
set theme=($root)/boot/grub/theme.txt
|
||||||
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
|
|
||||||
|
|
||||||
insmod play
|
insmod play
|
||||||
play 960 440 1 0 4 440 1
|
play 960 440 1 0 4 440 1
|
||||||
if [ ${iso_path} ] ; then
|
if [ ${iso_path} ] ; then
|
||||||
set loopback="findiso=${iso_path}"
|
set loopback="findiso=${iso_path}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set timeout=10
|
set timeout=10
|
||||||
menuentry "PVC Live Installer TEST" {
|
menuentry "PVC Live Installer" {
|
||||||
linux /live/vmlinuz boot=live components splash quiet "${loopback}"
|
linux /live/vmlinuz boot=live components splash quiet "${loopback}"
|
||||||
initrd /live/initrd.img
|
initrd /live/initrd.img
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ timeout 100
|
||||||
|
|
||||||
UI vesamenu.c32
|
UI vesamenu.c32
|
||||||
|
|
||||||
MENU background splash.png
|
MENU background /splash.png
|
||||||
MENU color title * #FFFFFFFF *
|
MENU color title * #FFFFFFFF *
|
||||||
MENU color border * #00000000 #00000000 none
|
MENU color border * #00000000 #00000000 none
|
||||||
MENU color sel * #ffffffff #76a1d0ff *
|
MENU color sel * #ffffffff #76a1d0ff *
|
||||||
|
|
|
@ -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"
|
||||||
|
}
|
Loading…
Reference in New Issue