From 8b9c8d71215d62c6f41226cdf6f72a34a95faa4c Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Tue, 3 Mar 2020 12:56:06 +0100 Subject: [PATCH] Simple GRUB Config added --- .gitignore | 2 ++ boot/grub2/grub.cfg | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .gitignore create mode 100644 boot/grub2/grub.cfg diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..22898bf --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Ignore everything that is not explicitly added +* diff --git a/boot/grub2/grub.cfg b/boot/grub2/grub.cfg new file mode 100644 index 0000000..de18218 --- /dev/null +++ b/boot/grub2/grub.cfg @@ -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 +}