Simple GRUB Config added

This commit is contained in:
Eric Teunis de Boone 2020-03-03 12:56:06 +01:00
parent 072017211f
commit 8b9c8d7121
2 changed files with 46 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
# Ignore everything that is not explicitly added
*

44
boot/grub2/grub.cfg Normal file
View File

@ -0,0 +1,44 @@
# 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
menuentry "Local Boot" {
insmod chain
chainloader +1
}
menuentry "Enable LVMs" {
insmod lvm
}
if [ -f "${prefix}/isos.cfg" ]; then
source "${prefix}/isos.cfg"
fi
menuentry ' ' {
true
}
menuentry "Shutdown" --class shutdown {
halt
}
menuentry "Reboot" --class shutdown {
reboot
}