Simple GRUB Config added
This commit is contained in:
parent
072017211f
commit
8b9c8d7121
2 changed files with 46 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Ignore everything that is not explicitly added
|
||||||
|
*
|
44
boot/grub2/grub.cfg
Normal file
44
boot/grub2/grub.cfg
Normal 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
|
||||||
|
}
|
Loading…
Reference in a new issue