]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
vmspawn: Exclude secure-boot unless requested main
authorDaan De Meyer <daan@amutable.com>
Fri, 5 Jun 2026 09:27:56 +0000 (09:27 +0000)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Fri, 5 Jun 2026 10:50:11 +0000 (12:50 +0200)
Otherwise vmspawn will still pick up firmware with support
for secure boot.

mkosi/vmspawn.py

index a5c2fa03d23cb74df8afc1b0d6e7c2412f2b0a64..8a4b364c9bbabaed7cee7fd7fa9e1eee1758f861 100644 (file)
@@ -64,6 +64,8 @@ def run_vmspawn(args: Args, config: Config) -> None:
     features: list[str] = []
     if firmware == Firmware.uefi_secure_boot:
         features += ["secure-boot"]
+    elif firmware.is_uefi():
+        features += ["~secure-boot"]
     if config.firmware_variables in (Path("microsoft"), Path("microsoft-mok")):
         features += ["enrolled-keys"]