domcapabilities: Whitelist fedora arm and ia32 edk2 paths

This commit is contained in:
Cole Robinson 2018-08-08 11:55:29 -04:00
parent 7334cfb366
commit b623ece2ba

View File

@ -149,6 +149,9 @@ class DomainCapabilities(XMLBuilder):
# only use this info to do things automagically for the user, it shouldn't
# validate anything the user explicitly enters.
_uefi_arch_patterns = {
"i686": [
".*ovmf-ia32.*", # fedora, gerd's firmware repo
],
"x86_64": [
".*OVMF_CODE\.fd", # RHEL
".*ovmf-x64/OVMF.*\.fd", # gerd's firmware repo
@ -160,6 +163,9 @@ class DomainCapabilities(XMLBuilder):
".*aarch64/QEMU_EFI.*", # gerd's firmware repo
".*aarch64.*", # generic attempt at a catchall
],
"armv7l": [
".*arm/QEMU_EFI.*", # fedora, gerd's firmware repo
],
}
def find_uefi_path_for_arch(self):