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 8f5833a31b
commit 329cd98df6
1 changed files with 4 additions and 1 deletions

View File

@ -140,4 +140,7 @@ else
set_arch="${CARCH}"
fi
exec systemd-nspawn "${nspawn_args[@]}" "$@"
for p in echo exec; do
[[ $p == echo ]] && msg "Entering chroot \"$working_dir\" via:"
"$p" systemd-nspawn "${nspawn_args[@]}" "$@"
done