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

Brian C. Lane bcl at redhat.com
Fri Dec 5 22:09:46 UTC 2014


On Fri, Dec 05, 2014 at 04:29:57PM -0500, Samantha N. Bueno wrote:
> 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

Ack

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list