diff options
author | Chris Lumens <clumens@redhat.com> | 2009-06-05 10:59:29 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-06-05 16:12:33 -0400 |
commit | 34ed3c31021d7139de8f0e84215a46769abdb992 (patch) | |
tree | 0eac7ad7090a6a7d506f8c5595603fd2bb780b29 /booty/ia64.py | |
parent | 5247763ce8b9d61aed0f9cec552d69bff7829a95 (diff) | |
download | anaconda-34ed3c31021d7139de8f0e84215a46769abdb992.tar.gz anaconda-34ed3c31021d7139de8f0e84215a46769abdb992.tar.xz anaconda-34ed3c31021d7139de8f0e84215a46769abdb992.zip |
Catch errors from bootloader installation and tell the user (#502210).
Diffstat (limited to 'booty/ia64.py')
-rw-r--r-- | booty/ia64.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/booty/ia64.py b/booty/ia64.py index b9646d3a5..6c9cdc232 100644 --- a/booty/ia64.py +++ b/booty/ia64.py @@ -11,25 +11,27 @@ class ia64BootloaderInfo(efiBootloaderInfo): config.addEntry("relocatable") return config - + def writeLilo(self, instRoot, bl, kernelList, chainList, defaultDev, justConfig): config = self.getBootloaderConfig(instRoot, bl, kernelList, chainList, defaultDev) - config.write(instRoot + self.configfile, perms = 0755) + return config.write(instRoot + self.configfile, perms = 0755) - return "" - def write(self, instRoot, bl, kernelList, chainList, defaultDev, justConfig): if len(kernelList) >= 1: - out = self.writeLilo(instRoot, bl, kernelList, - chainList, defaultDev, justConfig) + rc = self.writeLilo(instRoot, bl, kernelList, + chainList, defaultDev, justConfig) + if rc: + return rc else: raise BootyNoKernelWarning - self.removeOldEfiEntries(instRoot) - self.addNewEfiEntry(instRoot) + rc = self.removeOldEfiEntries(instRoot) + if rc: + return rc + return self.addNewEfiEntry(instRoot) def makeInitrd(self, kernelTag): return "/boot/efi/EFI/redhat/initrd%s.img" % kernelTag |