summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2019-12-31 19:25:40 +0000
committerPascal Terjan <pterjan@mageia.org>2020-01-01 14:43:45 +0000
commitb20813c771ce7abd72d7c42338f7b1a6b245ff8a (patch)
treec95376690e96b3213bd72231ae76d1f4f58246a2 /perl-install/common.pm
parentabaa559f8ac6371dd301f0c194745e644d012ca9 (diff)
downloaddrakx-b20813c771ce7abd72d7c42338f7b1a6b245ff8a.tar
drakx-b20813c771ce7abd72d7c42338f7b1a6b245ff8a.tar.gz
drakx-b20813c771ce7abd72d7c42338f7b1a6b245ff8a.tar.bz2
drakx-b20813c771ce7abd72d7c42338f7b1a6b245ff8a.tar.xz
drakx-b20813c771ce7abd72d7c42338f7b1a6b245ff8a.zip
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.
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r--perl-install/common.pm11
1 files changed, 8 insertions, 3 deletions
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';