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.
This commit is contained in:
Daan De Meyer 2023-06-29 13:35:03 +02:00 committed by Luca Boccassi
parent 69eeb6f15e
commit 2fe24cccde
2 changed files with 2 additions and 6 deletions

View 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

View 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.