From b20813c771ce7abd72d7c42338f7b1a6b245ff8a Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Tue, 31 Dec 2019 19:25:40 +0000 Subject: drakboot: support setting up uefi on aarch64 Partially tested on Amazon EC2, instance still didn't boot (as it needed it to be installed in removable mode (EFI/boot/bootaa64.efi) to be found) but at least drakboot --boot worked (except for failing to enabled acpid service) and things seem to be in the expected place. --- perl-install/common.pm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'perl-install/common.pm') diff --git a/perl-install/common.pm b/perl-install/common.pm index 474d34c21..265f7365c 100644 --- a/perl-install/common.pm +++ b/perl-install/common.pm @@ -733,8 +733,11 @@ Returns the short name of the UEFI machine type supported by the kernel stub loa =cut sub kernel_uefi_type() { - # No support for ARM yet - arch() =~ /i.86/ ? 'ia32' : 'x64'; + my $arch = arch(); + if ($arch eq 'aarch64') { + return 'aa64' + } + $arch =~ /i.86/ ? 'ia32' : 'x64'; } =item uefi_type() @@ -744,8 +747,10 @@ Returns the UEFI machine type short name =cut sub uefi_type() { + if (arch() eq 'aarch64') { + return 'aa64' + } if (-e '/sys/firmware/efi/fw_platform_size') { - # No support for ARM yet cat_('/sys/firmware/efi/fw_platform_size') =~ /32/ ? 'ia32' : 'x64'; } else { 'none'; -- cgit v1.2.1