summaryrefslogtreecommitdiffstats
path: root/loader2/urlinstall.c
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-12-04 05:09:15 +0000
committerJeremy Katz <katzj@redhat.com>2002-12-04 05:09:15 +0000
commit2f014ace7f8732919521b15af7881e6cde04b860 (patch)
treee43aea9a3272e0271e02e96d43d039e181f792c0 /loader2/urlinstall.c
parent6491c068a56b4727fb99f8f36671c10e08526a48 (diff)
downloadanaconda-2f014ace7f8732919521b15af7881e6cde04b860.tar.gz
anaconda-2f014ace7f8732919521b15af7881e6cde04b860.tar.xz
anaconda-2f014ace7f8732919521b15af7881e6cde04b860.zip
ramfs seems to behave now so switch to using it for storage of netstg/hdstg
Diffstat (limited to 'loader2/urlinstall.c')
-rw-r--r--loader2/urlinstall.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/loader2/urlinstall.c b/loader2/urlinstall.c
index c6480b112..7982106ea 100644
--- a/loader2/urlinstall.c
+++ b/loader2/urlinstall.c
@@ -32,8 +32,8 @@
#include "urls.h"
static int loadSingleUrlImage(struct iurlinfo * ui, char * file, int flags,
- char * dest, char * mntpoint, char * device,
- int silentErrors) {
+ char * dest, char * mntpoint, char * device,
+ int silentErrors) {
int fd;
int rc;
char * newFile = NULL;
@@ -76,7 +76,7 @@ static int loadSingleUrlImage(struct iurlinfo * ui, char * file, int flags,
static int loadUrlImages(struct iurlinfo * ui, int flags) {
- setupRamdisk();
+ /* setupRamdisk();*/
/* grab the updates.img before netstg1.img so that we minimize our
* ramdisk usage */
@@ -255,6 +255,10 @@ char * mountUrlImage(struct installMethod * method,
if (loadUrlImages(&ui, flags)) {
stage = URL_STAGE_MAIN;
dir = -1;
+ if (loaderData->method) {
+ free(loaderData->method);
+ loaderData->method = NULL;
+ }
} else {
stage = URL_STAGE_DONE;
dir = 1;