Browse Source

Log systemd-nspawn invocation parameters

When debugging it is useful to know what parameters where
used.
custom-20210202
Martchus 2 months ago
parent
commit
401609212e
  1. 5
      arch-nspawn.in

5
arch-nspawn.in

@ -127,7 +127,9 @@ eval "$(grep -a '^CARCH=' "$working_dir/etc/makepkg.conf")"
[[ -z $nosetarch ]] || unset CARCH
exec systemd-nspawn -q \
for p in echo exec; do
[[ $p == echo ]] && msg "Entering chroot \"$working_dir\" via:"
"$p" systemd-nspawn -q \
-D "$working_dir" \
-E "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin" \
--register=no \
@ -136,3 +138,4 @@ exec systemd-nspawn -q \
--resolv-conf=copy-host \
"${mount_args[@]}" \
"$@"
done
Loading…
Cancel
Save