[PATCH 2/3] text install -> text system (#1021963)

Will Woods wwoods at redhat.com
Mon Feb 24 21:12:42 UTC 2014


Doing as RHEL once did: if you're installing in text mode, the resulting
system should default to text mode.

So, after all the memory checks etc. happen, if you're still not in
graphical mode, you're in text mode. So we add 'skipx' to your kickstart
data and go from there.
---
 anaconda | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/anaconda b/anaconda
index 994497f..897ddc7 100755
--- a/anaconda
+++ b/anaconda
@@ -1033,6 +1033,10 @@ if __name__ == "__main__":
     # now start the interface
     setupDisplay(anaconda, opts, addon_paths)
 
+    # if we're in text mode, the resulting system should be too
+    if anaconda.displayMode != 'g':
+        anaconda.ksdata.skipx.skipx = True
+
     if anaconda.rescue:
         from pyanaconda import rescue
         anaconda.intf = rescue.RescueInterface()
-- 
1.8.5.3



More information about the anaconda-patches mailing list