1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-04-21 01:49:00 +00:00

Remove OVMF_CODE_4M.secboot.fd and associated code

This commit is contained in:
grossmj 2025-04-18 17:31:31 +07:00
parent 2b7eb91694
commit a5a663bc99
No known key found for this signature in database
GPG Key ID: 1E7DD6DBB53FF3D7
2 changed files with 1 additions and 6 deletions

View File

@ -2063,12 +2063,7 @@ class QemuVM(BaseNode):
# the node has its own UEFI variables store already, we must also use the old UEFI firmware
ovmf_firmware_path = self.manager.get_abs_image_path("OVMF_CODE.fd")
else:
# try to use the UEFI firmware from the system first
if "windows" in self.name.lower():
#TODO: temporary & ugly workaround for Windows (we should allow users to select the UEFI firmware type)
system_ovmf_firmware_path = "/usr/share/OVMF/OVMF_CODE_4M.secboot.fd"
else:
system_ovmf_firmware_path = "/usr/share/OVMF/OVMF_CODE_4M.fd"
system_ovmf_firmware_path = "/usr/share/OVMF/OVMF_CODE_4M.fd"
if os.path.exists(system_ovmf_firmware_path):
ovmf_firmware_path = system_ovmf_firmware_path
else: