|
|
f3523c |
From 082ac77cee8141494f1185a0debf958694639e4f Mon Sep 17 00:00:00 2001
|
|
|
f3523c |
Message-Id: <082ac77cee8141494f1185a0debf958694639e4f@dist-git>
|
|
|
f3523c |
From: Pavel Hrdina <phrdina@redhat.com>
|
|
|
f3523c |
Date: Tue, 21 Jul 2020 12:33:56 +0200
|
|
|
f3523c |
Subject: [PATCH] details: fix detection of firmware auto-selection
|
|
|
f3523c |
|
|
|
f3523c |
Commit <15a9502b7b7a263c4d66ff2b3f31c209f58fe0b4> fixed firmware
|
|
|
f3523c |
detection but incorrectly. It will always show only "UEFI" even if
|
|
|
f3523c |
the firmware auto-selection is not used because the function is_uefi()
|
|
|
f3523c |
checks both the old style and the new auto-selection.
|
|
|
f3523c |
|
|
|
f3523c |
We have to check only for the auto-selection option.
|
|
|
f3523c |
|
|
|
f3523c |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
f3523c |
(cherry picked from commit e8bf16b983558010cc9645e09eb36117e9e4fba4)
|
|
|
f3523c |
|
|
|
f3523c |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1857069
|
|
|
f3523c |
|
|
|
f3523c |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
f3523c |
---
|
|
|
f3523c |
virtManager/details/details.py | 2 +-
|
|
|
f3523c |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
f3523c |
|
|
|
f3523c |
diff --git a/virtManager/details/details.py b/virtManager/details/details.py
|
|
|
f3523c |
index 7b0a501f..4d67d8b1 100644
|
|
|
f3523c |
--- a/virtManager/details/details.py
|
|
|
f3523c |
+++ b/virtManager/details/details.py
|
|
|
f3523c |
@@ -2017,7 +2017,7 @@ class vmmDetails(vmmGObjectUI):
|
|
|
f3523c |
|
|
|
f3523c |
# Firmware
|
|
|
f3523c |
domcaps = self.vm.get_domain_capabilities()
|
|
|
f3523c |
- if self.vm.get_xmlobj().is_uefi():
|
|
|
f3523c |
+ if self.vm.get_xmlobj().os.firmware == "efi":
|
|
|
f3523c |
firmware = 'UEFI'
|
|
|
f3523c |
else:
|
|
|
f3523c |
firmware = domcaps.label_for_firmware_path(
|
|
|
f3523c |
--
|
|
|
f3523c |
2.26.2
|
|
|
f3523c |
|