summaryrefslogtreecommitdiffstats
path: root/mkosi.conf.d
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-12-19 11:43:01 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-12-20 20:09:36 +0100
commit8c5b4df5435ff9e49421ef8db0ca6de06c856b04 (patch)
tree6f397712be765562a4d6e8b156ab3da1865391ec /mkosi.conf.d
parentmkosi: Use tools tree by default (diff)
downloadsystemd-8c5b4df5435ff9e49421ef8db0ca6de06c856b04.tar.xz
systemd-8c5b4df5435ff9e49421ef8db0ca6de06c856b04.zip
mkosi: Use build/ as extra search path by default
Building systemd with mkosi generally requires a very recent version of systemd which might not be installed on the host. Let's configure mkosi to look for extra executables in the build/ directory by default so that we prefer systemd executables from the build directory over those on the host as those on the host are likely to be too old.
Diffstat (limited to 'mkosi.conf.d')
-rw-r--r--mkosi.conf.d/20-extra-search-path.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/mkosi.conf.d/20-extra-search-path.conf b/mkosi.conf.d/20-extra-search-path.conf
new file mode 100644
index 0000000000..b7308f7f21
--- /dev/null
+++ b/mkosi.conf.d/20-extra-search-path.conf
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+PathExists=build/
+
+[Build]
+ExtraSearchPaths=build/