summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-10-25 16:04:50 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-10-26 00:46:26 -0400
commit112e29d6823993a116d9399a3493250d6cb21c2b (patch)
tree689dd7a6cdfeec7e0a22353f13e62506f346b3ad
parent18a7244ee5d47b083bc3653a8d97ac6ef8bad5bc (diff)
librechroot: die if stdin isn't a TTY, be more verbose about it.
-rwxr-xr-xsrc/chroot-tools/librechroot10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot
index 65977ea..7c1c5a0 100755
--- a/src/chroot-tools/librechroot
+++ b/src/chroot-tools/librechroot
@@ -254,8 +254,16 @@ main() {
umask 0022
+ # XXX: SYSTEMD-STDIN HACK
if ! [[ -t 0 ]]; then
- warning "Input is not a TTY--signals will not be handled correctly."
+ error "Input is not a TTY"
+ plain "https://labs.parabola.nu/issues/420"
+ plain "https://bugs.freedesktop.org/show_bug.cgi?id=70290"
+ prose "Due to a bug in systemd-nspawn, redirecting stdin is not
+ supported. We have been able to mitigate the problems
+ with redirecting stdout, but until the bug is fixed,
+ redirecting stdin will only end in pain." >&2
+ return 1
fi
# Keep this lock as long as we are running