Log systemd-nspawn invocation parameters

When debugging it is useful to know what parameters where
used.
This commit is contained in:
Martchus 2021-07-20 18:26:04 +02:00
parent 3691cf3001
commit 9366903fe4
1 changed files with 4 additions and 1 deletions

View File

@ -126,7 +126,9 @@ else
set_arch="${CARCH}"
fi
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 \
@ -135,3 +137,4 @@ exec systemd-nspawn -q \
--resolv-conf=copy-host \
"${mount_args[@]}" \
"$@"
done