65 lines
945 B
INI
65 lines
945 B
INI
# Inspired by GLIM and Multiboot USB
|
|
|
|
set timeout=30
|
|
|
|
insmod all_video
|
|
set gfxpayload=keep
|
|
|
|
# Enable GUI
|
|
terminal_output gfxterm
|
|
|
|
probe -u $root --set=rootuuid
|
|
set imgdevpath="/dev/disk/by-uuid/$rootuuid"
|
|
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
|
|
}
|
|
|
|
|
|
|
|
if [ -f "${prefix}/isos.cfg" ]; then
|
|
menuentry ' ' { // Empty Line
|
|
true
|
|
}
|
|
|
|
menuentry "Inspect Isos" {
|
|
echo "Loading Iso Configs"
|
|
source "${prefix}/isos.cfg"
|
|
}
|
|
fi
|
|
|
|
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
|
|
}
|