From: Daan De Meyer Date: Thu, 29 Jun 2023 11:35:03 +0000 (+0200) Subject: mkosi: Enable Incremental= mode by default X-Git-Tag: v254-rc1~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2fe24cccdec69a4d10691ab24e82b02002a04516;p=thirdparty%2Fsystemd.git mkosi: Enable Incremental= mode by default 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. --- diff --git a/docs/HACKING.md b/docs/HACKING.md index 6680ebc91f6..5c4c6656166 100644 --- a/docs/HACKING.md +++ b/docs/HACKING.md @@ -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 diff --git a/mkosi.conf.d/10-systemd.conf b/mkosi.conf.d/10-systemd.conf index 7cc3e8c4eb1..8fe77e8fbe1 100644 --- a/mkosi.conf.d/10-systemd.conf +++ b/mkosi.conf.d/10-systemd.conf @@ -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.