At the end of an installation, display on the terminal where the
390 will reboot into. Note that this uses different code than
anaconda uses to provide more reliability.
---
anaconda | 2 ++
gui.py | 1 +
iutil.py | 9 +++++++++
3 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/anaconda b/anaconda
index 746ce1f..f6a3059 100755
--- a/anaconda
+++ b/anaconda
@@ -977,4 +977,6 @@ if __name__ == "__main__":
log.info("attempting to eject %s" % drive.path)
drive.eject()
+ iutil.dumpReIPLFiles ()
+
del anaconda.intf
diff --git a/gui.py b/gui.py
index 4e65362..bfeb65c 100755
--- a/gui.py
+++ b/gui.py
@@ -1330,6 +1330,7 @@ class InstallControlWindow:
takeScreenShot()
def _doExit (self, *args):
+ iutil.dumpReIPLFiles ()
gtk.main_quit()
os._exit(0)
diff --git a/iutil.py b/iutil.py
index f83b002..ecdc196 100644
--- a/iutil.py
+++ b/iutil.py
@@ -1015,6 +1015,15 @@ def reIPL(anaconda, loader_pid):
# or a two-item list with errorMessage and rebootInstr (=> shutdown)
return message
+def dumpReIPLFiles ():
+ if not isS390():
+ return
+
+ try:
+ execWithRedirect ("lsreipl", [], stdout = "/dev/tty3", stderr = "/dev/tty3", searchPath=1)
+ except Exception, e:
+ log.info("dumpReIPLFiles: Caught exception %s", (e,))
+
def resetRpmDb(rootdir):
for rpmfile in glob.glob("%s/var/lib/rpm/__db.*" % rootdir):
try:
--
1.6.4.4
--
Mark
You must be the change you wish to see in the world. -- Mahatma Gandhi
Worrying is praying for that you do not wish to happen.
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list