summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py23
1 files changed, 23 insertions, 0 deletions
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