summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--loader/nfsinstall.c4
-rw-r--r--loader/urlinstall.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/loader/nfsinstall.c b/loader/nfsinstall.c
index a8bba1c4c..d80091e78 100644
--- a/loader/nfsinstall.c
+++ b/loader/nfsinstall.c
@@ -159,8 +159,10 @@ char * mountNfsImage(struct installMethod * method,
} else {
char *substr, *tmp;
- if (nfsGetSetup(&host, &directory) == LOADER_BACK)
+ if (nfsGetSetup(&host, &directory) == LOADER_BACK) {
+ loaderData->stage2Data = NULL;
return NULL;
+ }
/* If the user-provided URL points at a repo instead of a
* stage2 image, fix that up now.
diff --git a/loader/urlinstall.c b/loader/urlinstall.c
index 392dbd1a4..150800e48 100644
--- a/loader/urlinstall.c
+++ b/loader/urlinstall.c
@@ -223,8 +223,10 @@ char *mountUrlImage(struct installMethod *method, char *location,
} else {
char *substr;
- if (urlMainSetupPanel(&ui))
+ if (urlMainSetupPanel(&ui)) {
+ loaderData->stage2Data = NULL;
return NULL;
+ }
/* If the user-provided URL points at a repo instead of
* a stage2 image, fix it up now.