summaryrefslogtreecommitdiffstats
path: root/booty/s390.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-06-05 10:59:29 -0400
committerChris Lumens <clumens@redhat.com>2009-06-05 16:12:33 -0400
commit34ed3c31021d7139de8f0e84215a46769abdb992 (patch)
tree0eac7ad7090a6a7d506f8c5595603fd2bb780b29 /booty/s390.py
parent5247763ce8b9d61aed0f9cec552d69bff7829a95 (diff)
downloadanaconda-34ed3c31021d7139de8f0e84215a46769abdb992.tar.gz
anaconda-34ed3c31021d7139de8f0e84215a46769abdb992.tar.xz
anaconda-34ed3c31021d7139de8f0e84215a46769abdb992.zip
Catch errors from bootloader installation and tell the user (#502210).
Diffstat (limited to 'booty/s390.py')
-rw-r--r--booty/s390.py25
1 files changed, 15 insertions, 10 deletions
diff --git a/booty/s390.py b/booty/s390.py
index 717f50ffa..9b6260054 100644
--- a/booty/s390.py
+++ b/booty/s390.py
@@ -153,19 +153,24 @@ class s390BootloaderInfo(bootloaderInfo):
f.close()
if not justConfigFile:
- iutil.execWithRedirect("/sbin/zipl", [], root = instRoot,
- stdout = "/dev/stdout",
- stderr = "/dev/stderr")
-
- return ""
+ rc = iutil.execWithRedirect("/sbin/zipl", [], root = instRoot,
+ stdout = "/dev/stdout",
+ stderr = "/dev/stderr")
+ if rc:
+ return rc
+
+ return 0
def write(self, instRoot, bl, kernelList, chainList,
defaultDev, justConfig):
- out = self.writeZipl(instRoot, bl, kernelList,
- chainList, defaultDev,
- justConfig | (not self.useZiplVal))
- out = self.writeChandevConf(bl, instRoot)
-
+ rc = self.writeZipl(instRoot, bl, kernelList,
+ chainList, defaultDev,
+ justConfig | (not self.useZiplVal))
+ if rc:
+ return rc
+
+ return self.writeChandevConf(bl, instRoot)
+
def __init__(self, storage):
bootloaderInfo.__init__(self, storage)
self.useZiplVal = 1 # only used on s390