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.
This commit is contained in:
Daan De Meyer
2026-02-16 13:28:22 +01:00
parent 64ccae2a25
commit 2a08e31cbd
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -10,6 +10,7 @@ SplitArtifacts=yes
[Build]
Environment=SYSTEMD_REPART_OVERRIDE_FSTYPE=squashfs
Incremental=relaxed
CacheOnly=metadata
[Content]
BaseTrees=%O/minimal-base
+1
View File
@@ -10,6 +10,7 @@ SplitArtifacts=yes
[Build]
Environment=SYSTEMD_REPART_OVERRIDE_FSTYPE=squashfs
Incremental=relaxed
CacheOnly=metadata
[Content]
BaseTrees=%O/minimal-base