2020-03-03 12:56:06 +01:00
|
|
|
# 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
|
|
|
|
|
2020-03-03 14:16:48 +01:00
|
|
|
set pager=1
|
|
|
|
|
|
|
|
if [ -f "${prefix}/theming.cfg" ];
|
|
|
|
source "${prefix}/theming.cfg"
|
|
|
|
fi
|
2020-03-03 12:56:06 +01:00
|
|
|
|
|
|
|
menuentry "Local Boot" {
|
|
|
|
insmod chain
|
|
|
|
|
|
|
|
chainloader +1
|
|
|
|
}
|
2020-03-03 14:16:48 +01:00
|
|
|
menuentry "Show Drives" {
|
|
|
|
ls
|
|
|
|
}
|
2020-03-03 12:56:06 +01:00
|
|
|
|
|
|
|
menuentry "Enable LVMs" {
|
|
|
|
insmod lvm
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -f "${prefix}/isos.cfg" ]; then
|
2020-03-03 14:16:48 +01:00
|
|
|
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
|
2020-03-03 12:56:06 +01:00
|
|
|
fi
|
|
|
|
|
2020-03-03 14:16:48 +01:00
|
|
|
menuentry ' ' { // Empty Line
|
2020-03-03 12:56:06 +01:00
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
menuentry "Shutdown" --class shutdown {
|
2020-03-03 14:16:48 +01:00
|
|
|
echo "System shutting down..."
|
2020-03-03 12:56:06 +01:00
|
|
|
halt
|
|
|
|
}
|
|
|
|
|
|
|
|
menuentry "Reboot" --class shutdown {
|
2020-03-03 14:16:48 +01:00
|
|
|
echo "System rebooting..."
|
2020-03-03 12:56:06 +01:00
|
|
|
reboot
|
|
|
|
}
|