[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[master] Fix rebooting after a kickstart error is detected.



1) make sure an actual reboot is done, not just a delayed reboot waiting
 for ctrl-c .
2) shutdown the user interface, this prevents screen in textmode from
still running and mangling the terminating output.

Resolves: rhbz#690748
---
 pyanaconda/kickstart.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 4afdfb8..cf14899 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -1207,7 +1207,8 @@ class AnacondaKSHandler(superclass):
         except KickstartError as e:
             if self.anaconda.intf:
                 self.anaconda.intf.kickstartErrorWindow(e.__str__())
-                sys.exit(1)
+                self.anaconda.intf.shutdown()
+                sys.exit(0)
             else:
                 stderrLog.critical(_("The following error was found while parsing the kickstart "
                                      "configuration file:\n\n%s") % e)
-- 
1.7.3.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]