Use shim on aarch64.
We have shim and grub working together on aarch64 now, so we may as well use them. (this also makes the case of boot${arch}.efi not mixed-case, which should guarantee it's in FAT rather than VFAT...) Related: rhbz#1100048 Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
b343637745
commit
771ff40c4e
@ -27,7 +27,7 @@ mkdir ${KERNELDIR}
|
|||||||
<% efiargs=""; efigraft="" %>
|
<% efiargs=""; efigraft="" %>
|
||||||
%if exists("boot/efi/EFI/*/grubaa64.efi"):
|
%if exists("boot/efi/EFI/*/grubaa64.efi"):
|
||||||
<%
|
<%
|
||||||
efiarch = 'AARCH64'
|
efiarch = 'AA64'
|
||||||
efigraft="EFI/BOOT={0}/EFI/BOOT".format(outroot)
|
efigraft="EFI/BOOT={0}/EFI/BOOT".format(outroot)
|
||||||
images = ["images/efiboot.img"]
|
images = ["images/efiboot.img"]
|
||||||
for img in images:
|
for img in images:
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<%page args="configdir, KERNELDIR, efiarch, isolabel"/>
|
<%page args="configdir, KERNELDIR, efiarch, isolabel"/>
|
||||||
<%
|
<%
|
||||||
|
from string import lower
|
||||||
EFIBOOTDIR="EFI/BOOT"
|
EFIBOOTDIR="EFI/BOOT"
|
||||||
APPLE_EFI_ICON=inroot+"/usr/share/pixmaps/bootloader/fedora.icns"
|
APPLE_EFI_ICON=inroot+"/usr/share/pixmaps/bootloader/fedora.icns"
|
||||||
APPLE_EFI_DISKNAME=inroot+"/usr/share/pixmaps/bootloader/fedora-media.vol"
|
APPLE_EFI_DISKNAME=inroot+"/usr/share/pixmaps/bootloader/fedora-media.vol"
|
||||||
@ -7,14 +8,9 @@ APPLE_EFI_DISKNAME=inroot+"/usr/share/pixmaps/bootloader/fedora-media.vol"
|
|||||||
|
|
||||||
mkdir ${EFIBOOTDIR}
|
mkdir ${EFIBOOTDIR}
|
||||||
mkdir ${EFIBOOTDIR}/fonts/
|
mkdir ${EFIBOOTDIR}/fonts/
|
||||||
%if efiarch == 'AARCH64':
|
install boot/efi/EFI/*/shim.efi ${EFIBOOTDIR}/BOOT${efiarch}.EFI
|
||||||
install boot/efi/EFI/*/grubaa64.efi ${EFIBOOTDIR}/BOOTAA64.efi
|
|
||||||
install boot/efi/EFI/*/grubaa64.efi ${EFIBOOTDIR}/grubaa64.efi
|
|
||||||
%else:
|
|
||||||
install boot/efi/EFI/*/shim.efi ${EFIBOOTDIR}/BOOT${efiarch}.efi
|
|
||||||
install boot/efi/EFI/*/MokManager.efi ${EFIBOOTDIR}/
|
install boot/efi/EFI/*/MokManager.efi ${EFIBOOTDIR}/
|
||||||
install boot/efi/EFI/*/gcdx64.efi ${EFIBOOTDIR}/grubx64.efi
|
install boot/efi/EFI/*/gcd${efiarch|lower}.efi ${EFIBOOTDIR}/grub${efiarch|lower}.efi
|
||||||
%endif
|
|
||||||
install boot/efi/EFI/*/fonts/unicode.pf2 ${EFIBOOTDIR}/fonts/
|
install boot/efi/EFI/*/fonts/unicode.pf2 ${EFIBOOTDIR}/fonts/
|
||||||
%if exists("usr/share/shim/lockdown.efi"):
|
%if exists("usr/share/shim/lockdown.efi"):
|
||||||
install usr/share/shim/lockdown.efi ${EFIBOOTDIR}/
|
install usr/share/shim/lockdown.efi ${EFIBOOTDIR}/
|
||||||
|
Loading…
Reference in New Issue
Block a user