diff options
author | Erik Troan <ewt@redhat.com> | 2001-01-12 19:13:19 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-01-12 19:13:19 +0000 |
commit | 46963f51b4b262b64d1a310ee2c397e447331706 (patch) | |
tree | 3ee4bcd72336c188da9de14160b03d5c9c53d123 /anaconda | |
parent | dc6734daff807b8379b0ebe3de8f67aafcaa242d (diff) | |
download | anaconda-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-x | anaconda | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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 # |