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.
This commit is contained in:
Marek Marczykowski 2012-07-09 15:02:40 +02:00
parent dfe853fb9d
commit cabe94affb

View File

@ -1113,10 +1113,13 @@ if __name__ == "__main__":
doStartupX11Actions(opts.runres) doStartupX11Actions(opts.runres)
xserver_pid = proc.pid xserver_pid = proc.pid
except (OSError, RuntimeError): except (OSError, RuntimeError):
stdoutLog.warning(" X startup failed, falling back to text mode") stdoutLog.warning(" X startup failed, aborting installation")
anaconda.displayMode = 't'
graphical_failed = 1
time.sleep(2) 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: finally:
signal.signal(signal.SIGUSR1, old_sigusr1) signal.signal(signal.SIGUSR1, old_sigusr1)
signal.signal(signal.SIGCHLD, old_sigchld) signal.signal(signal.SIGCHLD, old_sigchld)