From cabe94affbcd76337dbf7524cab5ea7501ad609a Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Mon, 9 Jul 2012 15:02:40 +0200 Subject: [PATCH] anaconda: do not fallback to text mode install when Xorg failed Text mode provide very limited UI widget set and almost not existing error reporting, which can result in broken installation. --- anaconda/anaconda | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/anaconda/anaconda b/anaconda/anaconda index 0f54d65..bb5bed5 100755 --- a/anaconda/anaconda +++ b/anaconda/anaconda @@ -1113,10 +1113,13 @@ if __name__ == "__main__": doStartupX11Actions(opts.runres) xserver_pid = proc.pid except (OSError, RuntimeError): - stdoutLog.warning(" X startup failed, falling back to text mode") - anaconda.displayMode = 't' - graphical_failed = 1 + stdoutLog.warning(" X startup failed, aborting installation") time.sleep(2) + sys.exit(1) + #stdoutLog.warning(" X startup failed, falling back to text mode") + #anaconda.displayMode = 't' + #graphical_failed = 1 + #time.sleep(2) finally: signal.signal(signal.SIGUSR1, old_sigusr1) signal.signal(signal.SIGCHLD, old_sigchld)