]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Add two more OVMF code locations
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 17 May 2022 13:57:32 +0000 (15:57 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 18 May 2022 15:48:28 +0000 (17:48 +0200)
Used on Ubuntu. Should make sure we find the secure boot OVMF stuff
on Github Actions.

mkosi/__init__.py

index 9a25608d66832525cbe94aa5f375b07c76850b1f..d620f113c5004933a16afb3ecec5186a51ef2ec6 100644 (file)
@@ -7644,6 +7644,7 @@ def find_qemu_firmware() -> Tuple[Path, bool]:
         "/usr/share/edk2-ovmf/OVMF_CODE.secboot.fd",  # GENTOO:
         "/usr/share/qemu/OVMF_CODE.secboot.fd",
         "/usr/share/ovmf/OVMF.secboot.fd",
+        "/usr/share/OVMF/OVMF_CODE.secboot.fd",
     ]
 
     for firmware in FIRMWARE_LOCATIONS:
@@ -7670,6 +7671,7 @@ def find_qemu_firmware() -> Tuple[Path, bool]:
         "/usr/share/edk2-ovmf/OVMF_CODE.fd",  # GENTOO:
         "/usr/share/qemu/OVMF_CODE.fd",
         "/usr/share/ovmf/OVMF.fd",
+        "/usr/share/OVMF/OVMF_CODE.fd",
     ]
 
     for firmware in FIRMWARE_LOCATIONS:
@@ -7690,7 +7692,8 @@ def find_ovmf_vars() -> Path:
     OVMF_VARS_LOCATIONS += ["/usr/share/edk2/ovmf/OVMF_VARS.fd",
                             "/usr/share/edk2-ovmf/OVMF_VARS.fd",  # GENTOO:
                             "/usr/share/qemu/OVMF_VARS.fd",
-                            "/usr/share/ovmf/OVMF_VARS.fd"]
+                            "/usr/share/ovmf/OVMF_VARS.fd",
+                            "/usr/share/OVMF/OVMF_VARS.fd"]
 
     for location in OVMF_VARS_LOCATIONS:
         if os.path.exists(location):