]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Only check whether a format can be booted if verb == qemu
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 27 Jul 2022 18:02:16 +0000 (20:02 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 28 Jul 2022 12:29:23 +0000 (14:29 +0200)
We can still build these images without any problems, we just can't
boot them, so let's still allow building the images, just not booting
them.

mkosi/__init__.py

index dea099c7cd3721f586987baf8891a329815a3047..6890334d344a5c6d7f0befda4a05839f3a01e5b8 100644 (file)
@@ -6388,7 +6388,7 @@ def load_args(args: argparse.Namespace) -> MkosiArgs:
             args.release = "rolling"
 
     if args.bootable:
-        if args.output_format in (
+        if args.verb == Verb.qemu and args.output_format in (
             OutputFormat.directory,
             OutputFormat.subvolume,
             OutputFormat.tar,