cleanup main-grub.cfg

This commit is contained in:
Tobias Powalowski 2022-03-07 17:03:30 +01:00
parent eb61050c6a
commit 3d2e23975f

View file

@ -43,6 +43,23 @@ function _secure_boot_tools {
}
}
function _efi_shell {
if [ ${grub_cpu} == "x86_64" ]; then
_EXT="x64"
elif [ ${grub_cpu} == "i386" ]; then
_EXT="ia32"
fi
menuentry "UEFI Shell version 2" {
_menu_running
chainloader /EFI/tools/shell${_EXT}_v2.efi
}
menuentry "UEFI Shell version 1" {
_menu_running
chainloader /EFI/tools/shell${_EXT}_v1.efi
}
}
if [ ${grub_platform} == "pc" ]; then
set default="Arch Linux X86_64 Archboot - BIOS Mode"
@ -66,18 +83,8 @@ if [ ${grub_platform} == "efi" ]; then
}
submenu "UEFI Tools" {
_secure_boot_tools
menuentry "UEFI Shell X64 v2" {
_menu_running
chainloader /EFI/tools/shellx64_v2.efi
}
menuentry "UEFI Shell X64 v1" {
_menu_running
chainloader /EFI/tools/shellx64_v1.efi
}
_efi_shell
}
elif [ ${grub_cpu} == "arm64" ]; then
set default="Arch Linux AA64 Archboot"
@ -103,15 +110,7 @@ if [ ${grub_platform} == "efi" ]; then
}
submenu "UEFI Tools" {
menuentry "UEFI Shell IA32 v2" {
_menu_running
chainloader /EFI/tools/shellia32_v2.efi
}
menuentry "UEFI Shell IA32 v1" {
_menu_running
chainloader /EFI/tools/shellia32_v1.efi
}
_efi_shell
}
fi
menuentry "Enter Firmware Setup" {