diff options
Diffstat (limited to 'loader2/nfsinstall.c')
-rw-r--r-- | loader2/nfsinstall.c | 7 |
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) |