From cd500d161fc174841486c6f204ae81d450086e92 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Tue, 12 Sep 2017 23:26:34 +0200 Subject: arch-nspawn: Pass --as-pid2 As not all commands we run are capable of reaping processes correctly. For example, pacman is not. --- arch-nspawn.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[@]}" \ "$@" -- cgit v1.2.3-70-g09d2