[rhinstaller/anaconda/pulls/345 rhel7-branch] Quit in askvnc should not reboot image and dirinstall (#1255069)

vpodzime installerbot-noreply at redhat.com
Fri Sep 4 07:26:09 UTC 2015


> @@ -105,7 +105,12 @@ def input(self, args, key):
>              d = YesNoDialog(self.app, _(self.app.quit_message))
>              self.app.switch_screen_modal(d)
>              if d.answer:
> -                execWithRedirect("systemctl", ["--no-wall", "reboot"])
> +                from pyanaconda.flags import flags
> +                if not flags.imageInstall and not flags.livecdInstall \
> +                   and not flags.dirInstall:

Should use ``can_touch_runtime_system`` instead. That would also catch the ``flags.testing`` case.

-- 
To view this pull request on github, visit https://github.com/rhinstaller/anaconda/pull/345#discussion_r38727282


More information about the anaconda-patches mailing list