mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
details: fix detection of firmware auto-selection
Commit <15a9502b7b7a263c4d66ff2b3f31c209f58fe0b4> fixed firmware detection but incorrectly. It will always show only "UEFI" even if the firmware auto-selection is not used because the function is_uefi() checks both the old style and the new auto-selection. We have to check only for the auto-selection option. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
ce5aba6a36
commit
e8bf16b983
@ -1886,7 +1886,7 @@ class vmmDetails(vmmGObjectUI):
|
|||||||
|
|
||||||
# Firmware
|
# Firmware
|
||||||
domcaps = self.vm.get_domain_capabilities()
|
domcaps = self.vm.get_domain_capabilities()
|
||||||
if self.vm.get_xmlobj().is_uefi():
|
if self.vm.get_xmlobj().os.firmware == "efi":
|
||||||
firmware = 'UEFI'
|
firmware = 'UEFI'
|
||||||
else:
|
else:
|
||||||
firmware = domcaps.label_for_firmware_path(
|
firmware = domcaps.label_for_firmware_path(
|
||||||
|
Loading…
Reference in New Issue
Block a user