mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix uefi shells
This commit is contained in:
parent
32a82b0112
commit
a98c83ace3
2 changed files with 7 additions and 22 deletions
|
@ -135,14 +135,10 @@ _prepare_efitools_uefi () {
|
|||
|
||||
_prepare_uefi_shell_tianocore() {
|
||||
echo "Prepare uefi shells ..."
|
||||
## Install Tianocore UDK/EDK2 ShellBinPkg UEFI X64 "Full Shell" - For UEFI Spec. >=2.3 systems
|
||||
cp /usr/share/edk2-shell/x64/Shell.efi "${_ISODIR}/EFI/TOOLS/SHELLX64_V2.EFI"
|
||||
## Install Tianocore UDK/EDK2 EdkShellBinPkg UEFI X64 "Full Shell" - For UEFI Spec. <2.3 systems
|
||||
cp /usr/share/edk2-shell/x64/Shell_Full.efi "${_ISODIR}/EFI/TOOLS/SHELLX64_V1.EFI"
|
||||
cp /usr/share/edk2-shell/x64/Shell_Full.efi "${_ISODIR}/EFI/TOOLS/SHELLX64.EFI"
|
||||
## Install Tianocore UDK/EDK2 ShellBinPkg UEFI IA32 "Full Shell" - For UEFI Spec. >=2.3 systems
|
||||
cp /usr/share/edk2-shell/ia32/Shell.efi "${_ISODIR}/EFI/TOOLS/SHELLIA32_V2.EFI"
|
||||
## InstallTianocore UDK/EDK2 EdkShellBinPkg UEFI IA32 "Full Shell" - For UEFI Spec. <2.3 systems
|
||||
cp /usr/share/edk2-shell/ia32/Shell_Full.efi "${_ISODIR}/EFI/TOOLS/SHELLIA32_V1.EFI"
|
||||
cp /usr/share/edk2-shell/ia32/Shell_Full.efi "${_ISODIR}/EFI/TOOLS/SHELLIA32.EFI"
|
||||
}
|
||||
|
||||
# build grubXXX with all modules: http://bugs.archlinux.org/task/71382
|
||||
|
|
|
@ -50,14 +50,9 @@ function _efi_shell {
|
|||
elif [ ${grub_cpu} == "i386" ]; then
|
||||
_EXT="IA32"
|
||||
fi
|
||||
menuentry "UEFI Shell version 2" {
|
||||
menuentry "UEFI Shell" {
|
||||
_menu_running
|
||||
chainloader /EFI/TOOLS/SHELL${_EXT}_V2.EFI
|
||||
}
|
||||
|
||||
menuentry "UEFI Shell version 1" {
|
||||
_menu_running
|
||||
chainloader /EFI/TOOLS/SHELL${_EXT}_V1.EFI
|
||||
chainloader /EFI/TOOLS/SHELL${_EXT}.EFI
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -104,10 +99,7 @@ if [ ${grub_platform} == "efi" ]; then
|
|||
linux /boot/vmlinuz_x86_64 rootfstype=ramfs console=ttyS0,115200 console=tty0
|
||||
_initrd_x86_64
|
||||
}
|
||||
|
||||
submenu "UEFI Shells" {
|
||||
_efi_shell
|
||||
}
|
||||
_efi_shell
|
||||
elif [ ${grub_cpu} == "arm64" ]; then
|
||||
set default="Archboot Arch Linux AA64"
|
||||
|
||||
|
@ -117,7 +109,6 @@ if [ ${grub_platform} == "efi" ]; then
|
|||
linux /boot/vmlinuz_aarch64 rootfstype=ramfs nr_cpus=1 console=ttyAMA0,115200 console=tty0 loglevel=4
|
||||
_initrd_aarch64
|
||||
}
|
||||
|
||||
elif [ ${grub_cpu} == "i386" ]; then
|
||||
set default="Archboot Arch Linux x86_64 - EFI MIXED MODE"
|
||||
|
||||
|
@ -127,10 +118,8 @@ if [ ${grub_platform} == "efi" ]; then
|
|||
linux /boot/vmlinuz_x86_64 rootfstype=ramfs _IA32_UEFI=1 console=ttyS0,115200 console=tty0
|
||||
_initrd_x86_64
|
||||
}
|
||||
|
||||
submenu "UEFI Shells" {
|
||||
_efi_shell
|
||||
}
|
||||
|
||||
_efi_shell
|
||||
fi
|
||||
|
||||
submenu "UEFI Secureboot Tools" {
|
||||
|
|
Loading…
Reference in a new issue