grubby/boot/grub2/grub.cfg

66 lines
945 B
INI
Raw Normal View History

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
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
}
menuentry "Show Drives" {
ls
}
2020-03-03 12:56:06 +01:00
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
2020-03-03 12:56:06 +01:00
fi
menuentry ' ' { // Empty Line
2020-03-03 12:56:06 +01:00
true
}
menuentry "Shutdown" --class shutdown {
echo "System shutting down..."
2020-03-03 12:56:06 +01:00
halt
}
menuentry "Reboot" --class shutdown {
echo "System rebooting..."
2020-03-03 12:56:06 +01:00
reboot
}