From 0a4e7669578959240f661c8294f6c1dd99c145f5 Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 20 Jul 2021 18:26:04 +0200 Subject: [PATCH] Log systemd-nspawn invocation parameters When debugging it is useful to know what parameters where used. --- arch-nspawn.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch-nspawn.in b/arch-nspawn.in index dd651a1..78b1d11 100644 --- a/arch-nspawn.in +++ b/arch-nspawn.in @@ -122,7 +122,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 \ @@ -131,3 +133,4 @@ exec systemd-nspawn -q \ --resolv-conf=copy-host \ "${mount_args[@]}" \ "$@" +done