]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Enable Incremental= mode by default
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 29 Jun 2023 11:35:03 +0000 (13:35 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 29 Jun 2023 12:11:39 +0000 (13:11 +0100)
Since mkosi is now smart enough to drop the caches when the list of
packages changes, let's enable Incremental= mode by default to ensure
a good experience for anyone new to hacking on systemd with mkosi.

docs/HACKING.md
mkosi.conf.d/10-systemd.conf

index 6680ebc91f69b495221a2da9bd23886fb614767b..5c4c66561667cf3eee9a078c7d355825324951b4 100644 (file)
@@ -57,12 +57,7 @@ $ mkosi qemu
 ```
 
 Every time you rerun the `mkosi` command a fresh image is built, incorporating
-all current changes you made to the project tree. To save time when rebuilding,
-you can use mkosi's incremental mode (`-i`). This instructs mkosi to build a set
-of cache images that make future builds a lot faster. Note that the `-i` flag
-both instructs mkosi to build cached images if they don't exist yet and to use
-cached images if they already exist so make sure to always specify `-i` if you
-want mkosi to use the cached images.
+all current changes you made to the project tree.
 
 If you want to do a local build without mkosi, most distributions also provide
 very simple and convenient ways to install all development packages necessary
index 7cc3e8c4eb15f5241974aee5960deacde7ea3dc2..8fe77e8fbe1b1a6cdd585bf831c72806b9d8e0bc 100644 (file)
@@ -12,6 +12,7 @@ BuildDirectory=mkosi.builddir
 CacheDirectory=mkosi.cache
 
 [Host]
+Incremental=yes
 QemuMem=2G
 ExtraSearchPaths=build/
 # Make sure we don't trigger systemd-firstboot prompting for the root password.