]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Use build/ as extra search path by default
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 19 Dec 2024 10:43:01 +0000 (11:43 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 7 Jan 2025 18:26:13 +0000 (18:26 +0000)
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.

(cherry picked from commit 8c5b4df5435ff9e49421ef8db0ca6de06c856b04)

mkosi.conf.d/20-extra-search-path.conf [new file with mode: 0644]

diff --git a/mkosi.conf.d/20-extra-search-path.conf b/mkosi.conf.d/20-extra-search-path.conf
new file mode 100644 (file)
index 0000000..b7308f7
--- /dev/null
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+PathExists=build/
+
+[Build]
+ExtraSearchPaths=build/