summaryrefslogtreecommitdiffstats
path: root/mkosi.images
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-09-21 19:29:15 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-09-22 15:23:01 +0200
commit6d862a9dc08285fffb9da29055235b5c9935dcf8 (patch)
treeebd4807759776ce8dcf6075b4273cd847fbbd5c7 /mkosi.images
parentPreset user units on first boot as well (diff)
downloadsystemd-6d862a9dc08285fffb9da29055235b5c9935dcf8.tar.xz
systemd-6d862a9dc08285fffb9da29055235b5c9935dcf8.zip
mkosi: Add back support for running clangd within mkosi
This allows hacking on systemd without installing any build dependencies except mkosi on the host machine.
Diffstat (limited to 'mkosi.images')
-rwxr-xr-xmkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot4
1 files changed, 4 insertions, 0 deletions
diff --git a/mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot b/mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot
index cafbafee66..1e3a74f953 100755
--- a/mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot
+++ b/mkosi.images/build/mkosi.conf.d/arch/mkosi.build.chroot
@@ -2,6 +2,10 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
+if [[ "$1" == "clangd" ]]; then
+ exec "$@"
+fi
+
if [[ ! -f "pkg/$PKG_SUBDIR/PKGBUILD" ]]; then
echo "PKGBUILD not found at pkg/$PKG_SUBDIR/PKGBUILD, run mkosi once with -ff to make sure the PKGBUILD is cloned" >&2
exit 1