[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] don't change from cmdline to textmode on lowmem systems



Hello,

this one-liner should make installation in cmdline possible for systems
  with little RAM. Currently if little RAM is detected, anaconda changes
to textmode. Running in cmdmode should also be possible. This patch is
completely untested for now, but please verify.

Thanks,
Niels

diff --git a/anaconda b/anaconda
index 09a1107..f0cbf0a 100755
--- a/anaconda
+++ b/anaconda
@@ -457,7 +457,7 @@ def checkMemory(opts):
 
     # override display mode if machine cannot nicely run X
     if not flags.test:
-        if iutil.memInstalled() < isys.MIN_GUI_RAM:
+        if opts.display_mode not in ('t', 'c') and iutil.memInstalled() < isys.MIN_GUI_RAM:
             stdoutLog.warning(_("You do not have enough RAM to use the graphical "
                                 "installer.  Starting text mode."))
             opts.display_mode = 't'

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]