[rhel7-branch 1/1] On incomplete ks, don't automatically proceed with install. (#1251978)
bcl
installerbot-noreply at redhat.com
Tue Aug 11 17:15:09 UTC 2015
From: "Samantha N. Bueno" <sbueno+anaconda at redhat.com>
Mirroring GUI behavior -- if using an incomplete ks file, don't just
proceed with installation once all spokes are completed. Users must
specifically indicate (hitting 'c' to continue) they wish to proceed.
Resolves: rhbz#1251978
(cherry picked from commit 2ef0b136f51a3cbf5d6210c033a5242444a944dc)
---
pyanaconda/ui/tui/hubs/summary.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/ui/tui/hubs/summary.py b/pyanaconda/ui/tui/hubs/summary.py
index c8bd6b7..434dfff 100644
--- a/pyanaconda/ui/tui/hubs/summary.py
+++ b/pyanaconda/ui/tui/hubs/summary.py
@@ -84,8 +84,12 @@ def prompt(self, args=None):
log.error("CmdlineError: %s", errtxt)
raise CmdlineError(errtxt)
+ # if we ever need to halt the flow of a ks install to prompt users for
+ # input, flip off the automatedInstall flag -- this way installation
+ # does not automatically proceed once all spokes are complete, and a
+ # user must confirm they want to begin installation
+ flags.automatedInstall = False
- # override the default prompt since we want to offer the 'b' to begin
# installation option here
return _(" Please make your choice from above ['%(quit)s' to quit | '%(begin)s' to begin installation |\n '%(refresh)s' to refresh]: ") % {
# TRANSLATORS: 'q' to quit
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/37efe6d05560dbb9de8c6f4eaf419eb735a09adf
More information about the anaconda-patches
mailing list