Commit 5a7890f0 authored by Evangelos Foutras's avatar Evangelos Foutras
Browse files

arch-nspawn: preserve systemd-nspawn's stderr

It is passed down to the container when stdin/stdout is not a tty; this
is the case when archbuild's output is redirected to a pipe or file.
parent ba45e06d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -96,7 +96,7 @@ copy_hostconf


eval $(grep '^CARCH=' "$working_dir/etc/makepkg.conf")
eval $(grep '^CARCH=' "$working_dir/etc/makepkg.conf")


exec ${CARCH:+setarch "$CARCH"} systemd-nspawn 2>/dev/null \
exec ${CARCH:+setarch "$CARCH"} systemd-nspawn -q \
	-D "$working_dir" \
	-D "$working_dir" \
	--register=no \
	--register=no \
	"${mount_args[@]}" \
	"${mount_args[@]}" \