From: Daan De Meyer Date: Thu, 6 Apr 2023 19:53:00 +0000 (+0200) Subject: Allow missing secure boot key/cert if running genkey X-Git-Tag: v15~267 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f219c1125893e8773efed5ec8a1226f3bd8a00cb;p=thirdparty%2Fmkosi.git Allow missing secure boot key/cert if running genkey --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 736b3e47f..936033d28 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -2294,7 +2294,7 @@ def load_args(args: argparse.Namespace) -> MkosiConfig: args.credentials = load_credentials(args) args.kernel_command_line_extra = load_kernel_command_line_extra(args) - if args.secure_boot: + if args.secure_boot and args.verb != Verb.genkey: if args.secure_boot_key is None: die( "UEFI SecureBoot enabled, but couldn't find private key. (Consider placing it in mkosi.secure-boot.key?)"