summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-01-12 19:13:19 +0000
committerErik Troan <ewt@redhat.com>2001-01-12 19:13:19 +0000
commit46963f51b4b262b64d1a310ee2c397e447331706 (patch)
tree3ee4bcd72336c188da9de14160b03d5c9c53d123 /anaconda
parentdc6734daff807b8379b0ebe3de8f67aafcaa242d (diff)
downloadanaconda-46963f51b4b262b64d1a310ee2c397e447331706.tar.gz
anaconda-46963f51b4b262b64d1a310ee2c397e447331706.tar.xz
anaconda-46963f51b4b262b64d1a310ee2c397e447331706.zip
1) check for enough ram to run
2) use symbolic names for memory from isys
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda15
1 files changed, 14 insertions, 1 deletions
diff --git a/anaconda b/anaconda
index c13441280..6236c2052 100755
--- a/anaconda
+++ b/anaconda
@@ -233,9 +233,22 @@ from kickstart import Kickstart
# override display mode if machine cannot nicely run X
#
if (not test):
- if (iutil.memInstalled() < 35000):
+ if (iutil.memInstalled() < isys.MIN_GUI_RAM):
forced_display_mode = 't'
+if iutil.memInstalled() < isys.MIN_RAM:
+ from snack import *
+
+ screen = SnackScreen()
+ ButtonChoiceWindow(screen, _('Fatal Error'),
+ _('You do not have enough RAM to install Red Hat '
+ 'Linux on this machine.\n'
+ '\n'
+ 'Press <return> to reboot your system.\n'),
+ buttons = (_("OK"),))
+ screen.finish()
+ sys.exit(0)
+
#
# handle class passed from loader
#