From d00ef216099104c03c400f56fb21e19089df4a7d Mon Sep 17 00:00:00 2001 From: Mark Hamzy Date: Mon, 16 Feb 2009 14:19:35 -0600 Subject: reIPL support for s390 Signed-off-by: David Cantrell --- packages.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'packages.py') diff --git a/packages.py b/packages.py index f871c49f8..12d98b76a 100644 --- a/packages.py +++ b/packages.py @@ -422,3 +422,26 @@ def betaNagScreen(anaconda): sys.exit(0) else: break + +def doReIPL(anaconda): +# # This is here as an example to fix the screen during the TUI debugging path +# anaconda.intf.screen.suspend () +# import pdb +# pdb.set_trace () + + if not iutil.isS390(): + return DISPATCH_NOOP + + messageInfo = iutil.reIPL(anaconda, os.getppid()) + + if messageInfo is None: + anaconda.canReIPL = True + else: + anaconda.canReIPL = False + + (errorMessage, rebootInstr) = messageInfo + + # errorMessage intentionally not shown in UI + anaconda.reIPLMessage = rebootInstr + + return DISPATCH_FORWARD -- cgit