]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Don't complain about compression for non-compressible output formats
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 2 Dec 2023 08:24:22 +0000 (09:24 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 4 Dec 2023 11:43:26 +0000 (12:43 +0100)
mkosi/__init__.py

index e54b43d2146ac467635317503a43d0b0b29441fe..96ee413bfd367fd79061b7cf29ef58fb691f574b 100644 (file)
@@ -2785,7 +2785,7 @@ def run_verb(args: MkosiArgs, images: Sequence[MkosiConfig]) -> None:
         opname = "acquire shell in" if args.verb == Verb.shell else "boot"
         if last.output_format in (OutputFormat.tar, OutputFormat.cpio):
             die(f"Sorry, can't {opname} a {last.output_format} archive.")
-        if last.compress_output:
+        if last.output_format.use_outer_compression() and last.compress_output:
             die(f"Sorry, can't {opname} a compressed image.")
 
     if (