mkosi: Mark minimal images as Incremental=relaxed

Building these over and over again is extremely wasteful. Let's just
build them once and not touch them again unless -ff is specified or
their cache is out-of-date, which is exactly what Incremental=relaxed
does.

This means mkosi.extra/ and such changes won't be picked up for these
anymore unless -ff is used, but that slight annoyance is totally
outweighed by the time saved building the images.
This commit is contained in:
Daan De Meyer
2026-02-14 10:36:14 +01:00
parent 894477e6c1
commit 7a70c32368
7 changed files with 3 additions and 14 deletions
+1
View File
@@ -9,6 +9,7 @@ SplitArtifacts=yes
[Build]
Environment=SYSTEMD_REPART_OVERRIDE_FSTYPE=squashfs
Incremental=relaxed
[Content]
BaseTrees=%O/minimal-base
+1
View File
@@ -9,6 +9,7 @@ SplitArtifacts=yes
[Build]
Environment=SYSTEMD_REPART_OVERRIDE_FSTYPE=squashfs
Incremental=relaxed
[Content]
BaseTrees=%O/minimal-base
@@ -5,6 +5,7 @@ Format=directory
[Build]
Environment=SYSTEMD_REQUIRED_DEPS_ONLY=1
Incremental=relaxed
[Content]
Bootable=no
@@ -10,9 +10,6 @@ Packages=
iproute
nmap
VolatilePackages=
systemd-libs
RemoveFiles=
# Arch Linux doesn't split their gcc-libs package so we manually remove
# unneeded stuff here to make sure it doesn't end up in the image.
@@ -11,6 +11,3 @@ Packages=
iproute
iproute-tc
nmap-ncat
VolatilePackages=
systemd-libs
@@ -12,7 +12,3 @@ Packages=
iproute2
mount
ncat
VolatilePackages=
libsystemd0
libudev1
@@ -15,7 +15,3 @@ Packages=
patterns-base-minimal_base
sed
xz
VolatilePackages=
libsystemd0
libudev1