]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Set CacheOnly=metadata for test images 40699/head
authorDaan De Meyer <daan@amutable.com>
Mon, 16 Feb 2026 12:28:22 +0000 (13:28 +0100)
committerDaan De Meyer <daan@amutable.com>
Mon, 16 Feb 2026 12:28:22 +0000 (13:28 +0100)
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.

mkosi/mkosi.images/minimal-0/mkosi.conf
mkosi/mkosi.images/minimal-1/mkosi.conf

index 0d55105c70faf0552c2d4c3cbe05b9ba877c40b2..0e897a53c23815db4be5212e943e90a5c42f7f99 100644 (file)
@@ -10,6 +10,7 @@ SplitArtifacts=yes
 [Build]
 Environment=SYSTEMD_REPART_OVERRIDE_FSTYPE=squashfs
 Incremental=relaxed
+CacheOnly=metadata
 
 [Content]
 BaseTrees=%O/minimal-base
index 0d55105c70faf0552c2d4c3cbe05b9ba877c40b2..0e897a53c23815db4be5212e943e90a5c42f7f99 100644 (file)
@@ -10,6 +10,7 @@ SplitArtifacts=yes
 [Build]
 Environment=SYSTEMD_REPART_OVERRIDE_FSTYPE=squashfs
 Incremental=relaxed
+CacheOnly=metadata
 
 [Content]
 BaseTrees=%O/minimal-base