summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-02-01 23:28:45 +0000
committerErik Troan <ewt@redhat.com>2001-02-01 23:28:45 +0000
commit5f3bebc3ca2debfde4442455e92f0eeb35971f4c (patch)
treebb279380f40b14b6691802a606e6fa02b7012fd3 /loader
parent4b39d55b22864be5be5bfc789e50ba2bdc6677ba (diff)
downloadanaconda-5f3bebc3ca2debfde4442455e92f0eeb35971f4c.tar.gz
anaconda-5f3bebc3ca2debfde4442455e92f0eeb35971f4c.tar.xz
anaconda-5f3bebc3ca2debfde4442455e92f0eeb35971f4c.zip
pass --overhead if it's != 0
Diffstat (limited to 'loader')
-rw-r--r--loader/loader.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/loader/loader.c b/loader/loader.c
index f30916b8e..97419a99d 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -133,6 +133,7 @@ static struct installMethod installMethods[] = {
};
static int numMethods = sizeof(installMethods) / sizeof(struct installMethod);
+static int memoryOverhead = 0;
static int newtRunning = 0;
int continuing = 0;
#ifdef INCLUDE_KON
@@ -487,6 +488,8 @@ static int loadCompressedRamdisk(int fd, off_t size, char *title,
logMessage("done loading %d bytes", total);
+ memoryOverhead += (total / 1024);
+
if (title != NULL) {
newtPopWindow();
newtFormDestroy(form);
@@ -1512,6 +1515,7 @@ static char * doMountImage(char * location,
}
break;
case STEP_URL:
+logMessage("starting to STEP_URL");
url = installMethods[validMethods[methodNum]].mountImage(
installMethods + validMethods[methodNum], location,
kd, modInfo, modLoaded, modDepsPtr, flags);
@@ -2871,6 +2875,12 @@ int main(int argc, char ** argv) {
*argptr++ = pcic;
}
+ if (memoryOverhead) {
+ *argptr++ = "--overhead";
+ *argptr = malloc(20);
+ sprintf(*argptr, "%d", memoryOverhead);
+ }
+
for (i = 0; i < modLoaded->numModules; i++) {
if (!modLoaded->mods[i].path) continue;