]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Make secure boot key and certificate required if set
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 6 May 2023 11:34:27 +0000 (13:34 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 8 May 2023 12:55:41 +0000 (14:55 +0200)
If these are explicitly configured, we should make sure the paths
exist.

mkosi/config.py

index a4549e7fff69510f8e5dc00e9b47b1357c0d6b94..317dd7a6cbfd207805afc4c6b03f834d36591cb6 100644 (file)
@@ -829,13 +829,13 @@ class MkosiConfigParser:
         MkosiConfigSetting(
             dest="secure_boot_key",
             section="Output",
-            parse=config_make_path_parser(required=False),
+            parse=config_make_path_parser(),
             paths=("mkosi.key",),
         ),
         MkosiConfigSetting(
             dest="secure_boot_certificate",
             section="Output",
-            parse=config_make_path_parser(required=False),
+            parse=config_make_path_parser(),
             paths=("mkosi.crt",),
         ),
         MkosiConfigSetting(