summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-09-13 00:08:30 +0200
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-09-13 00:17:49 +0200
commit6a7dcdeff9dee3c3b1192e61ad8e5a58f2215db0 (patch)
treeccde81e83d68ab2a0afd949fb8d736558c56b1ac
parentcd500d161fc174841486c6f204ae81d450086e92 (diff)
downloaddevtools-6a7dcdeff9dee3c3b1192e61ad8e5a58f2215db0.tar.gz
devtools-6a7dcdeff9dee3c3b1192e61ad8e5a58f2215db0.tar.xz
arch-nspawn: Hack to give the inner process a controlling terminal
This was lost at some point.
-rw-r--r--arch-nspawn.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in
index c55f498..d25fa3b 100644
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -116,4 +116,4 @@ exec ${CARCH:+setarch "$CARCH"} systemd-nspawn -q \
-E "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin" \
--register=no --keep-unit --as-pid2 \
"${mount_args[@]}" \
- "$@"
+ /bin/bash -c 'exec </dev/console -- "$@"' bash "${1:-/bin/bash}" "${@:2}"