From 2495ba28ac3e8dcda9931075c9aa1e6c24bb3332 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 11 Jul 2019 16:26:50 +0200 Subject: [PATCH] Only allow UEFI support to be enabled on x86_64 Until we figure out how to enable it on other arches (just on aarch64 really). --- src/pylorax/installer.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pylorax/installer.py b/src/pylorax/installer.py index f406d848..5ec2be82 100644 --- a/src/pylorax/installer.py +++ b/src/pylorax/installer.py @@ -191,8 +191,11 @@ class QEMUInstall(object): qemu_cmd += ["-machine", "accel=kvm"] if boot_uefi: - qemu_cmd += ["-machine", "q35,smm=on"] - qemu_cmd += ["-global", "driver=cfi.pflash01,property=secure,value=on"] + if target_arch == x86_64: + qemu_cmd += ["-machine", "q35,smm=on"] + qemu_cmd += ["-global", "driver=cfi.pflash01,property=secure,value=on"] + else: + raise InstallError("UEFI support not available for %s (yet?)" % target_arch) # Copy the initrd from the iso, create a cpio archive of the kickstart files # and append it to the temporary initrd.