anaconda: abort installation on X startup fail
Do not fallback to text mode, which cannot property install the system without kickstart file (missing LUKS passphrase prompt). Fixes QubesOS/qubes-issues#2996
This commit is contained in:
parent
48c6983b29
commit
2d3405de9a
@ -543,10 +543,13 @@ def setupDisplay(anaconda, options, addons=None):
|
||||
doStartupX11Actions()
|
||||
except (OSError, RuntimeError) as e:
|
||||
log.warning("X startup failed: %s", e)
|
||||
stdoutLog.warning("X startup failed, falling back to text mode")
|
||||
anaconda.displayMode = 't'
|
||||
graphical_failed = 1
|
||||
time.sleep(2)
|
||||
stdoutLog.warning("X startup failed, aborting installation")
|
||||
stdoutLog.error("X startup failed, aborting installation")
|
||||
print(_("The installation cannot continue and the system will be rebooted"))
|
||||
print(_("Press ENTER to continue"))
|
||||
input()
|
||||
iutil.ipmi_report(constants.IPMI_ABORTED)
|
||||
sys.exit(1)
|
||||
|
||||
if not graphical_failed:
|
||||
doExtraX11Actions(options.runres)
|
||||
|
Loading…
Reference in New Issue
Block a user