]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix condition to also check the certificate source type
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 16 Nov 2024 14:49:45 +0000 (15:49 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 17 Nov 2024 16:29:49 +0000 (17:29 +0100)
mkosi/bootloader.py

index a11e3aeb432ab7324174049bfea165df2d773e6f..76dc6ecc219573fc685a9f9330813c2db0be7615 100644 (file)
@@ -500,7 +500,11 @@ def run_systemd_sign_tool(
         sandbox=config.sandbox(
             binary=cmd[0],
             options=opt,
-            devices=devices or key_source.type != KeySourceType.file,
+            devices=(
+                devices
+                or key_source.type != KeySourceType.file
+                or certificate_source.type != CertificateSourceType.file
+            ),
         ),
     )