[master/rhel7-branch] Automatically reboot after successful cmdline installation. (#1056507)

Samantha N. Bueno sbueno+anaconda at redhat.com
Mon Feb 10 16:48:57 UTC 2014


This prevents a traceback from occurring if installing in cmdline
mode since, at the end of installation, users are prompted for
input to agree to the EULA.

Resolves: rhbz#1056507
---
 pyanaconda/ui/tui/hubs/progress.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pyanaconda/ui/tui/hubs/progress.py b/pyanaconda/ui/tui/hubs/progress.py
index 032ebd9..2edb497 100644
--- a/pyanaconda/ui/tui/hubs/progress.py
+++ b/pyanaconda/ui/tui/hubs/progress.py
@@ -121,6 +121,10 @@ class ProgressHub(TUIHub):
             # Just pretend like we got input, and our input doesn't care
             # what it gets, it just quits.
             self.input(None, None)
+        # cmdline mode, continue automatically
+        if flags.automatedInstall and "RUNKS" in flags.cmdline:
+            # As above, pretend like we got input and just quit
+            self.input(None, None)
         
         return True
 
-- 
1.8.3.1



More information about the anaconda-patches mailing list