fix grub menu entries

This commit is contained in:
Tobias Powalowski 2023-02-08 12:11:33 +01:00
parent 6cd03ce24e
commit 9805bac57e

View file

@ -37,24 +37,30 @@ function _menu_running {
function _secure_boot_tools { function _secure_boot_tools {
menuentry "Secure Boot KeyTool" { menuentry "Secure Boot KeyTool" {
_menu_running _menu_running
chainloader /EFI/TOOLS/KEYTOOL.EFI search --no-floppy --set=root --file /efi/boot/VMLINUZ_X64
chainloader /boot/tools/keytool.efi
} }
menuentry "Secure Boot HashTool" { menuentry "Secure Boot HashTool" {
_menu_running _menu_running
chainloader /EFI/TOOLS/HASHTOOL.EFI search --no-floppy --set=root --file /efi/boot/VMLINUZ_X64
chainloader /boot/tools/hashtool.efi
} }
} }
function _efi_shell { function _efi_shell {
if [ ${grub_cpu} == "x86_64" ]; then if [ ${grub_cpu} == "x86_64" ]; then
_EXT="X64" menuentry "UEFI Shell" {
_menu_running
search --no-floppy --set=root --file /efi/boot/VMLINUZ_X64
chainloader /boot/tools/shellx64.efi
}
elif [ ${grub_cpu} == "i386" ]; then elif [ ${grub_cpu} == "i386" ]; then
_EXT="IA32" menuentry "UEFI Shell" {
_menu_running
search --no-floppy --set=root --file /efi/boot/VMLINUZ_X64
chainloader /boot/tools/shellx64.efi
}
fi fi
menuentry "UEFI Shell" {
_menu_running
chainloader /EFI/TOOLS/SHELL${_EXT}.EFI
}
} }
if [ ${grub_platform} == "pc" ]; then if [ ${grub_platform} == "pc" ]; then
@ -64,7 +70,6 @@ if [ ${grub_platform} == "pc" ]; then
linux /boot/vmlinuz-x86_64 rootfstype=ramfs console=ttyS0,115200 console=tty0 audit=0 linux /boot/vmlinuz-x86_64 rootfstype=ramfs console=ttyS0,115200 console=tty0 audit=0
initrd /boot/intel-ucode.img /boot/amd-ucode.img /boot/initramfs-x86_64.img initrd /boot/intel-ucode.img /boot/amd-ucode.img /boot/initramfs-x86_64.img
} }
menuentry "Memory Tester (memtest86+)" { menuentry "Memory Tester (memtest86+)" {
_menu_running _menu_running
linux16 /boot/memtest.bin linux16 /boot/memtest.bin
@ -96,20 +101,18 @@ if [ ${grub_platform} == "efi" ]; then
} }
_efi_shell _efi_shell
fi fi
submenu "UEFI Secureboot Tools" { submenu "UEFI Secureboot Tools" {
_secure_boot_tools _secure_boot_tools
} }
menuentry "Enter Firmware Setup" { menuentry "Enter Firmware Setup" {
_menu_running _menu_running
fwsetup fwsetup
} }
if [ ${grub_cpu} == "x86_64" ]; then if [ ${grub_cpu} == "x86_64" ]; then
menuentry "Memory Tester (memtest86+)" { menuentry "Memory Tester (memtest86+)" {
_menu_running _menu_running
linux /EFI/TOOLS/MEMTEST.EFI search --no-floppy --set=root --file /efi/boot/VMLINUZ_X64
linux /boot/tools/memtest.efi
} }
fi fi
fi fi