From 112e29d6823993a116d9399a3493250d6cb21c2b Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 25 Oct 2013 16:04:50 -0400 Subject: librechroot: die if stdin isn't a TTY, be more verbose about it. --- src/chroot-tools/librechroot | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -- cgit v1.2.2