From 291b750831c30d6639f70789eb2c8dedae2cabfc Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 2 Mar 2022 10:57:36 -0500 Subject: [PATCH] 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 --- virtinst/osdict.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/virtinst/osdict.py b/virtinst/osdict.py index 521fdde7..021b0256 100644 --- a/virtinst/osdict.py +++ b/virtinst/osdict.py @@ -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):