diff options
author | Cole Robinson <crobinso@redhat.com> | 2022-03-02 10:57:36 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2022-03-02 10:57:36 -0500 |
commit | 291b750831c30d6639f70789eb2c8dedae2cabfc (patch) | |
tree | 3edd7c7f3c8e594053e56611303a1e81eb8ffdee /virtinst | |
parent | 5640e9be5b4d5fddb045a68aeea3ea776c9404b7 (diff) | |
download | virt-manager-291b750831c30d6639f70789eb2c8dedae2cabfc.tar.gz |
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>
Diffstat (limited to 'virtinst')
-rw-r--r-- | virtinst/osdict.py | 7 |
1 files changed, 7 insertions, 0 deletions
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): |