arch-nspawn: Pass --as-pid2

As not all commands we run are capable of reaping processes correctly.
For example, pacman is not.
This commit is contained in:
Jan Alexander Steffens (heftig) 2017-09-12 23:26:34 +02:00
parent 5ebb9c16c0
commit cd500d161f
No known key found for this signature in database
GPG Key ID: A5E9288C4FA415FA
1 changed files with 1 additions and 1 deletions

View File

@ -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[@]}" \
"$@"