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

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



ack

On Mon, 2011-03-28 at 10:07 +0200, Ales Kozumplik wrote:
> 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)

-- 
Martin Gracik <mgracik redhat com>


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