[PATCH 3/3] Reset the want_x flag after the memory check

Vratislav Podzimek vpodzime at redhat.com
Tue Jul 22 15:53:33 UTC 2014


Checking memory may change requested display mode in case there's not enough
memory for a graphical installation while it is enough for a text installation.

Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 anaconda | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/anaconda b/anaconda
index e70f7e8..298aba0 100755
--- a/anaconda
+++ b/anaconda
@@ -777,6 +777,8 @@ def setupDisplay(anaconda, options, addons=None):
     log.info("Display mode = %s", anaconda.displayMode)
     check_memory(anaconda, options)
 
+    # check_memory may have changed the display mode
+    want_x = want_x and (anaconda.displayMode == "g")
     if want_x:
         try:
             startX11()
-- 
1.9.3



More information about the anaconda-patches mailing list