summaryrefslogtreecommitdiffstats
path: root/bootloader.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 /bootloader.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 'bootloader.py')
-rw-r--r--bootloader.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/bootloader.py b/bootloader.py
index 0c28c8ac8..eb28e0a67 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -199,11 +199,16 @@ def writeBootloader(anaconda):
dosync()
try:
- anaconda.id.bootloader.write(anaconda.rootPath, anaconda.id.bootloader,
- kernelList, otherList, defaultDev,
- justConfigFile)
+ rc = anaconda.id.bootloader.write(anaconda.rootPath, anaconda.id.bootloader,
+ kernelList, otherList, defaultDev,
+ justConfigFile)
if not justConfigFile:
w.pop()
+
+ if rc and anaconda.intf:
+ anaconda.intf.messageWindow(_("Warning"),
+ _("There was an error installing the bootloader. "
+ "Your system may not be bootable."))
except booty.BootyNoKernelWarning:
if not justConfigFile:
w.pop()