diff options
author | Mike Fulbright <msf@redhat.com> | 2003-06-19 22:43:34 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-06-19 22:43:34 +0000 |
commit | cc3d82b6306652028a1a3ca697a0baf3632b0c71 (patch) | |
tree | cf1a1b4cf48a861799a210fd64f90e4b25518091 /loader2/urlinstall.c | |
parent | b5ae1650387a68a9521935c36d6e5f94dd46c458 (diff) | |
download | anaconda-cc3d82b6306652028a1a3ca697a0baf3632b0c71.tar.gz anaconda-cc3d82b6306652028a1a3ca697a0baf3632b0c71.tar.xz anaconda-cc3d82b6306652028a1a3ca697a0baf3632b0c71.zip |
make graphical installation the default, and change to text based installation for FTP/HTTP if too little RAM detected
Diffstat (limited to 'loader2/urlinstall.c')
-rw-r--r-- | loader2/urlinstall.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/loader2/urlinstall.c b/loader2/urlinstall.c index ed4ac80c4..27af6b486 100644 --- a/loader2/urlinstall.c +++ b/loader2/urlinstall.c @@ -97,10 +97,11 @@ static int loadUrlImages(struct iurlinfo * ui, int flags) { unlink("/tmp/ramfs/updates-disk.img"); } - if (FL_GRAPHICAL(flags)) - stage2img = "stage2.img"; - else + /* require 128MB for use of graphical stage 2 due to size of image */ + if (FL_TEXT(flags) || totalMemory() < 128000) stage2img = "netstg2.img"; + else + stage2img = "stage2.img"; snprintf(tmpstr1, sizeof(tmpstr1), "RedHat/base/%s", stage2img); snprintf(tmpstr2, sizeof(tmpstr2), "/tmp/ramfs/%s", stage2img); |