summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-09-12 23:26:34 +0200
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-09-12 23:27:07 +0200
commitcd500d161fc174841486c6f204ae81d450086e92 (patch)
tree61e589fccb81c71f34b18bd1786e916137638275
parent5ebb9c16c055747e0501ac58b4cb05c20b8f7439 (diff)
downloaddevtools32-cd500d161fc174841486c6f204ae81d450086e92.tar.xz
arch-nspawn: Pass --as-pid2
As not all commands we run are capable of reaping processes correctly. For example, pacman is not.
-rw-r--r--arch-nspawn.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in
index 5205bf4..c55f498 100644
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -114,6 +114,6 @@ eval "$(grep '^CARCH=' "$working_dir/etc/makepkg.conf")"
exec ${CARCH:+setarch "$CARCH"} systemd-nspawn -q \
-D "$working_dir" \
-E "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin" \
- --register=no --keep-unit \
+ --register=no --keep-unit --as-pid2 \
"${mount_args[@]}" \
"$@"