summaryrefslogtreecommitdiffstats
path: root/loader2/nfsinstall.c
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-09-20 03:31:26 +0000
committerJeremy Katz <katzj@redhat.com>2003-09-20 03:31:26 +0000
commit31f1add4879da48efb7af21fc5c575692cc3709d (patch)
tree7a541b8f54f91ed8309da17752e205b40db2cf30 /loader2/nfsinstall.c
parent8307d33391423f13c1deed409b80d8e381582a93 (diff)
downloadanaconda-31f1add4879da48efb7af21fc5c575692cc3709d.tar.gz
anaconda-31f1add4879da48efb7af21fc5c575692cc3709d.tar.xz
anaconda-31f1add4879da48efb7af21fc5c575692cc3709d.zip
merge from taroon
fairly large merge, but all fairly obvious stuff. will test in a tree tomorrow
Diffstat (limited to 'loader2/nfsinstall.c')
-rw-r--r--loader2/nfsinstall.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/loader2/nfsinstall.c b/loader2/nfsinstall.c
index 8b86aa416..be63bf2be 100644
--- a/loader2/nfsinstall.c
+++ b/loader2/nfsinstall.c
@@ -217,7 +217,7 @@ char * mountNfsImage(struct installMethod * method,
void setKickstartNfs(struct knownDevices * kd,
struct loaderData_s * loaderData, int argc,
char ** argv, int * flagsPtr) {
- char * host, * dir;
+ char * host = NULL, * dir = NULL;
poptContext optCon;
int rc;
struct poptOption ksNfsOptions[] = {
@@ -238,6 +238,11 @@ void setKickstartNfs(struct knownDevices * kd,
return;
}
+ if (!host || !dir) {
+ logMessage("host and directory for nfs kickstart not specified");
+ return;
+ }
+
loaderData->method = strdup("nfs");
loaderData->methodData = calloc(sizeof(struct nfsInstallData *), 1);
if (host)