[PATCH 2/2] catch runtime errors and display message to user (#730023)

Samantha N. Bueno sbueno+anaconda at redhat.com
Mon Jan 7 15:52:56 UTC 2013


this used to crash the installer previously, which is less than
ideal

Resolves: rhbz#730023
---
 bootloader.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/bootloader.py b/bootloader.py
index fb54196..a67b0d9 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -249,6 +249,12 @@ def writeBootloader(anaconda):
                                _("No kernel packages were installed on the "
                                  "system.  Bootloader configuration "
                                  "will not be changed."))
+    except RuntimeError:
+        w.pop()
+        if anaconda.intf:
+            anaconda.intf.messageWindow(_("Warning"),
+                                _("There was an error installing the bootloader.  "
+                                  "The system may not be bootable"))
 
     dosync()
 
-- 
1.7.11.7



More information about the anaconda-patches mailing list