Moved /boot/grub2 to /boot/grub
This commit is contained in:
parent
035696cc08
commit
637d9037dc
4 changed files with 2 additions and 0 deletions
65
boot/grub/grub.cfg
Normal file
65
boot/grub/grub.cfg
Normal file
|
@ -0,0 +1,65 @@
|
|||
# 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
|
||||
|
||||
menuentry "Local Boot" {
|
||||
insmod chain
|
||||
|
||||
chainloader +1
|
||||
}
|
||||
menuentry "Show Drives" {
|
||||
ls
|
||||
}
|
||||
|
||||
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
|
||||
fi
|
||||
|
||||
menuentry ' ' { // Empty Line
|
||||
true
|
||||
}
|
||||
|
||||
menuentry "Shutdown" --class shutdown {
|
||||
echo "System shutting down..."
|
||||
halt
|
||||
}
|
||||
|
||||
menuentry "Reboot" --class shutdown {
|
||||
echo "System rebooting..."
|
||||
reboot
|
||||
}
|
5
boot/grub/isos.cfg
Normal file
5
boot/grub/isos.cfg
Normal file
|
@ -0,0 +1,5 @@
|
|||
if [ -d "${prefix}/isos.d" ]; then
|
||||
for conf in isos.d/*.cfg; do
|
||||
source "$conf"
|
||||
done
|
||||
fi
|
4
boot/grub/theming.cfg
Normal file
4
boot/grub/theming.cfg
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
set theme="${prefix}/themes/stylish_dark/theme.txt"
|
||||
set icondir="${prefix}/themes/icons"
|
||||
export theme icondir
|
Loading…
Add table
Add a link
Reference in a new issue