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).
This commit is contained in:
Bastien Nocera 2019-07-11 16:26:50 +02:00 committed by Brian C. Lane
parent 29dc2bd7fe
commit 2495ba28ac
1 changed files with 5 additions and 2 deletions

View File

@ -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.