]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Only look for services in /usr and /etc
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 6 May 2024 12:39:28 +0000 (14:39 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 6 May 2024 12:40:29 +0000 (14:40 +0200)
mkosi.images/system/mkosi.postinst.chroot

index 5683d5ca53bfbce0895bcbf4c18a6bcc07218137..de333f364b82d64bd127f9d314772865e0332c12 100755 (executable)
@@ -38,7 +38,7 @@ TTYVHangup=no
 CapabilityBoundingSet=~CAP_SYS_TTY_CONFIG
 EOF
     # ASAN and syscall filters aren't compatible with each other.
-    find / -name '*.service' -type f -exec sed -i 's/^\(MemoryDeny\|SystemCall\)/# \1/' {} +
+    find /usr /etc -name '*.service' -type f -exec sed -i 's/^\(MemoryDeny\|SystemCall\)/# \1/' {} +
 
     # `systemd-hwdb update` takes > 50s when built with sanitizers so let's not run it by default.
     systemctl mask systemd-hwdb-update.service