Log systemd-nspawn invocation parameters
When debugging it is useful to know what parameters where used.
This commit is contained in:
parent
30c9b9827b
commit
cb34a5532e
|
@ -122,7 +122,9 @@ else
|
||||||
set_arch="${CARCH}"
|
set_arch="${CARCH}"
|
||||||
fi
|
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" \
|
-D "$working_dir" \
|
||||||
-E "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin" \
|
-E "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin" \
|
||||||
--register=no \
|
--register=no \
|
||||||
|
@ -131,3 +133,4 @@ exec systemd-nspawn -q \
|
||||||
--resolv-conf=copy-host \
|
--resolv-conf=copy-host \
|
||||||
"${mount_args[@]}" \
|
"${mount_args[@]}" \
|
||||||
"$@"
|
"$@"
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in New Issue