mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
cleanup main-grub.cfg
This commit is contained in:
parent
eb61050c6a
commit
3d2e23975f
1 changed files with 27 additions and 28 deletions
|
@ -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" {
|
||||
|
|
Loading…
Reference in a new issue