Added external theming and ISOs configs

This commit is contained in:
Eric Teunis de Boone 2020-03-03 14:16:48 +01:00
parent 8b9c8d7121
commit 9ddb08ca1b
3 changed files with 32 additions and 2 deletions

View File

@ -14,12 +14,20 @@ export imgdevpath rootuuid
set isopath="/boot/isos"
export isopath
set pager=1
if [ -f "${prefix}/theming.cfg" ];
source "${prefix}/theming.cfg"
fi
menuentry "Local Boot" {
insmod chain
chainloader +1
}
menuentry "Show Drives" {
ls
}
menuentry "Enable LVMs" {
insmod lvm
@ -28,17 +36,30 @@ menuentry "Enable LVMs" {
if [ -f "${prefix}/isos.cfg" ]; then
source "${prefix}/isos.cfg"
menuentry ' ' { // Empty Line
true
}
menuentry "Inspect Isos" {
echo "Loading Iso Configs"
source "${prefix}/isos.cfg"
}
fi
menuentry ' ' {
if [ ${grub_platform} == "efi" ]; then
# place UEFI-only menu entries here
fi
menuentry ' ' { // Empty Line
true
}
menuentry "Shutdown" --class shutdown {
echo "System shutting down..."
halt
}
menuentry "Reboot" --class shutdown {
echo "System rebooting..."
reboot
}

5
boot/grub2/isos.cfg Normal file
View File

@ -0,0 +1,5 @@
if [ -d "${prefix}/isos.d" ]; then
for conf in isos.d/*.cfg; do
source "$conf"
done
fi

4
boot/grub2/theming.cfg Normal file
View File

@ -0,0 +1,4 @@
set theme="${prefix}/themes/stylish_dark/theme.txt"
set icondir="${prefix}/themes/icons"
export theme icondir