mkosi: Set CacheOnly=metadata for test images

The default behavior is to sync repository metadata for every image
that does not have a cache and we recently changed behavior to invalidate
all cached images whenever we decide the repository metadata needs to
be resynced.

In systemd we have two images that are not cached because they use BaseTrees=
hence set CacheOnly=metadata to explicitly indicate these two images
should never cause a repository metadata if resync even though they are
not cached.

(cherry picked from commit 2a08e31cbd)
(cherry picked from commit 86d9a91be1)
This commit is contained in:
Daan De Meyer
2026-02-16 13:28:22 +01:00
committed by Luca Boccassi
parent 604ecfc30f
commit a5e91d819b
2 changed files with 2 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ SplitArtifacts=yes
[Build]
Environment=SYSTEMD_REPART_OVERRIDE_FSTYPE=squashfs
Incremental=relaxed
CacheOnly=metadata
[Content]
BaseTrees=%O/minimal-base

View File

@@ -10,6 +10,7 @@ SplitArtifacts=yes
[Build]
Environment=SYSTEMD_REPART_OVERRIDE_FSTYPE=squashfs
Incremental=relaxed
CacheOnly=metadata
[Content]
BaseTrees=%O/minimal-base