summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2012-10-10 22:00:43 -0700
committerJesse Keating <jkeating@redhat.com>2012-10-10 22:30:32 -0700
commit57099758870c074648418d73ac47c757ab6f0034 (patch)
treeba4b50b547f1fa97e678612d9737afa8763a5000
parentd3533f5e8ded8f9621c2baba7d17b818698e2d1d (diff)
downloadanaconda-57099758870c074648418d73ac47c757ab6f0034.tar.gz
anaconda-57099758870c074648418d73ac47c757ab6f0034.tar.xz
anaconda-57099758870c074648418d73ac47c757ab6f0034.zip
Revive reipl (#860244)
reIPL used to be ran via dispatch, and would trigger either a reboot or a shut down. Now we'll run it as part of the s390 bootloader install. The message warning users to reipl themselves is somewhat lost here, something for another day perhaps. This at least gets the system working right.
-rw-r--r--pyanaconda/bootloader.py4
-rw-r--r--pyanaconda/iutil.py19
2 files changed, 9 insertions, 14 deletions
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index 1333c751c..a8c969e51 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -2013,6 +2013,10 @@ class ZIPL(BootLoader):
if not self.stage1_name:
raise BootLoaderError("could not find IPL device")
+ # do the reipl
+ message = iutil.reIPL(self.stage1_name)
+ log.info(message)
+
class SILO(YabootSILOBase):
name = "SILO"
_config_file = "silo.conf"
diff --git a/pyanaconda/iutil.py b/pyanaconda/iutil.py
index b39d4f46f..730da8cfe 100644
--- a/pyanaconda/iutil.py
+++ b/pyanaconda/iutil.py
@@ -860,14 +860,7 @@ def numeric_type(num):
return num
-def reIPL(anaconda, loader_pid):
- try:
- ipldev = anaconda.storage.bootloader.stage1_name
- except AttributeError:
- message = _("Error determining boot device's disk name")
- log.warning(message)
- return message
-
+def reIPL(ipldev):
try:
rc = execWithRedirect("chreipl", ["node", "/dev/" + ipldev],
stdout = "/dev/tty5",
@@ -878,7 +871,6 @@ def reIPL(anaconda, loader_pid):
ipldev, e)
if rc:
- anaconda.canReIPL = False
devstring = None
for disk in anaconda.storage.disks:
@@ -892,13 +884,12 @@ def reIPL(anaconda, loader_pid):
message = _("After shutdown, please perform a manual IPL from %s "
"to continue installation." % devstring)
- log.info("reIPL configuration failed => halt")
- os.kill(os.getppid(), signal.SIGUSR1)
+ log.info("reIPL configuration failed")
+ #os.kill(os.getppid(), signal.SIGUSR1)
else:
- anaconda.canReIPL = True
message = None
- log.info("reIPL configuration successful => reboot")
- os.kill(os.getppid(), signal.SIGUSR2)
+ log.info("reIPL configuration successful")
+ #os.kill(os.getppid(), signal.SIGUSR2)
return message