]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
compress: do not attempt to compress skipped partitions
authorLuca Boccassi <luca.boccassi@gmail.com>
Sat, 21 Jun 2025 16:53:39 +0000 (17:53 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 21 Jun 2025 16:53:39 +0000 (17:53 +0100)
When doing offline verity signing, split partitions and compression are
enabled, we attempt to compress a non-existing partition (verity-sig)
which will be created only later.
Do not attempt to compress partitions that are marked to be skipped by
repart.

mkosi/__init__.py

index ceb619cdc6db9bc7cf305361b3bb07e72ba97139..2088602c945e6ab050f53d6d3bcd5b6046faf98a 100644 (file)
@@ -3460,7 +3460,7 @@ def make_image(
 
     if split:
         for p in partitions:
-            if p.split_path:
+            if p.split_path and p.type not in skip:
                 maybe_compress(context, context.config.compress_output, p.split_path)
 
     if ArtifactOutput.roothash in context.config.split_artifacts and (