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()
|
doStartupX11Actions()
|
||||||
except (OSError, RuntimeError) as e:
|
except (OSError, RuntimeError) as e:
|
||||||
log.warning("X startup failed: %s", e)
|
log.warning("X startup failed: %s", e)
|
||||||
stdoutLog.warning("X startup failed, falling back to text mode")
|
stdoutLog.warning("X startup failed, aborting installation")
|
||||||
anaconda.displayMode = 't'
|
stdoutLog.error("X startup failed, aborting installation")
|
||||||
graphical_failed = 1
|
print(_("The installation cannot continue and the system will be rebooted"))
|
||||||
time.sleep(2)
|
print(_("Press ENTER to continue"))
|
||||||
|
input()
|
||||||
|
iutil.ipmi_report(constants.IPMI_ABORTED)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if not graphical_failed:
|
if not graphical_failed:
|
||||||
doExtraX11Actions(options.runres)
|
doExtraX11Actions(options.runres)
|
||||||
|
Loading…
Reference in New Issue
Block a user