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

[PATCH] fix 531304, 529392



With rescue copying install.img to /tmp when available_memory>128000k,
this left the machine unable to hold install.img in ram if there is
under 256M of ram. Patch to change that to be based on MIN_GUI_RAM
instead.  

Hope it helps,

Jerry
diff -up ./cdinstall.c.orig ./cdinstall.c
--- ./cdinstall.c.orig	2009-11-07 10:23:54.000000000 -0600
+++ ./cdinstall.c	2009-11-07 10:24:45.000000000 -0600
@@ -380,7 +380,7 @@ static char *setupCdrom(char *location, 
                     /* free up the CD drive and user can have it avaiable to  */
                     /* aid system recovery.                                   */
                     if (FL_RESCUE(flags) && !FL_TEXT(flags) &&
-                        totalMemory() > 128000) {
+                        totalMemory() > MIN_GUI_RAM ) {
                         rc = copyFile(stage2loc, "/tmp/install.img");
                         stage2img = strdup("/tmp/install.img");
                         stage2inram = 1;

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