Added external theming and ISOs configs
This commit is contained in:
parent
8b9c8d7121
commit
9ddb08ca1b
3 changed files with 32 additions and 2 deletions
|
@ -14,12 +14,20 @@ export imgdevpath rootuuid
|
||||||
set isopath="/boot/isos"
|
set isopath="/boot/isos"
|
||||||
export isopath
|
export isopath
|
||||||
|
|
||||||
|
set pager=1
|
||||||
|
|
||||||
|
if [ -f "${prefix}/theming.cfg" ];
|
||||||
|
source "${prefix}/theming.cfg"
|
||||||
|
fi
|
||||||
|
|
||||||
menuentry "Local Boot" {
|
menuentry "Local Boot" {
|
||||||
insmod chain
|
insmod chain
|
||||||
|
|
||||||
chainloader +1
|
chainloader +1
|
||||||
}
|
}
|
||||||
|
menuentry "Show Drives" {
|
||||||
|
ls
|
||||||
|
}
|
||||||
|
|
||||||
menuentry "Enable LVMs" {
|
menuentry "Enable LVMs" {
|
||||||
insmod lvm
|
insmod lvm
|
||||||
|
@ -28,17 +36,30 @@ menuentry "Enable LVMs" {
|
||||||
|
|
||||||
|
|
||||||
if [ -f "${prefix}/isos.cfg" ]; then
|
if [ -f "${prefix}/isos.cfg" ]; then
|
||||||
|
menuentry ' ' { // Empty Line
|
||||||
|
true
|
||||||
|
}
|
||||||
|
|
||||||
|
menuentry "Inspect Isos" {
|
||||||
|
echo "Loading Iso Configs"
|
||||||
source "${prefix}/isos.cfg"
|
source "${prefix}/isos.cfg"
|
||||||
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
menuentry ' ' {
|
if [ ${grub_platform} == "efi" ]; then
|
||||||
|
# place UEFI-only menu entries here
|
||||||
|
fi
|
||||||
|
|
||||||
|
menuentry ' ' { // Empty Line
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
menuentry "Shutdown" --class shutdown {
|
menuentry "Shutdown" --class shutdown {
|
||||||
|
echo "System shutting down..."
|
||||||
halt
|
halt
|
||||||
}
|
}
|
||||||
|
|
||||||
menuentry "Reboot" --class shutdown {
|
menuentry "Reboot" --class shutdown {
|
||||||
|
echo "System rebooting..."
|
||||||
reboot
|
reboot
|
||||||
}
|
}
|
||||||
|
|
5
boot/grub2/isos.cfg
Normal file
5
boot/grub2/isos.cfg
Normal 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
4
boot/grub2/theming.cfg
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
|
||||||
|
set theme="${prefix}/themes/stylish_dark/theme.txt"
|
||||||
|
set icondir="${prefix}/themes/icons"
|
||||||
|
export theme icondir
|
Loading…
Reference in a new issue