]> 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)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 20 Dec 2024 19:09:36 +0000 (20:09 +0100)
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.

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/