[master/rhel7-branch] Fix EOF error that occurs if user input required in x3270. (#1171135)

Samantha N. Bueno sbueno+anaconda at redhat.com
Fri Dec 5 21:29:57 UTC 2014


Prior to fixing rhbz#1040933, anaconda was always launched from a tmux
session. Now however, if you install via text/cmdline kickstart, sshd
is suspended and everything is dumped to the x3270 console.

If it happened that user input was required (e.g. if you supplied an
incomplete ks file), this EOF error was triggered when raw_input() was
called from pyanaconda.ui.tui.simpleline.base, because there was no std
input device for it to open. Well, standard input on x3270 is a tty, so
define that here to prevent the traceback and allow users to provide
input if it is needed.

Resolves: rhbz#1171135

---
 data/systemd/anaconda-direct.service | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data/systemd/anaconda-direct.service b/data/systemd/anaconda-direct.service
index 9bf172a..91a88b3 100644
--- a/data/systemd/anaconda-direct.service
+++ b/data/systemd/anaconda-direct.service
@@ -11,7 +11,7 @@ Environment=HOME=/root MALLOC_CHECK_=2 MALLOC_PERTURB_=204 PATH=/usr/bin:/bin:/s
 Type=oneshot
 WorkingDirectory=/root
 ExecStart=/usr/sbin/anaconda
-StandardInput=null
+StandardInput=tty
 StandardOutput=journal+console
 StandardError=journal+console
 TimeoutSec=0
-- 
1.9.3



More information about the anaconda-patches mailing list