osdict: Hardcode win11 requires UEFI

Since there's a release pending, this is a bit of future proofing
if win11 pops up in a future osinfo-db without accompanying
libosinfo firmware APIs landing

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2022-03-02 10:57:36 -05:00
parent 5640e9be5b
commit 291b750831
1 changed files with 7 additions and 0 deletions

View File

@ -464,6 +464,13 @@ class _OsVariant(object):
except Exception: # pragma: no cover
log.debug("Error checking osinfo firmware support", exc_info=True)
if self.name == "win11": # pragma: no cover
# 2022-03 the libosinfo APIs for firmware haven't landed, and
# there's no osinfo-db entry for win11. But we know win11 requires
# UEFI. Hardcode it for now, so the next virt-install release has
# a better chance of doing the right thing for win11 when
# it pops up in a osinfo-db release.
ret = True
return ret
def get_recommended_resources(self):