summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--loader/loader.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/loader/loader.c b/loader/loader.c
index b3f19d6ae..89dd5450f 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1128,8 +1128,6 @@ static char * mountNfsImage(struct installMethod * method,
}
}
-logMessage("mount complete");
-
writeNetInfo("/tmp/netinfo", &netDev, kd);
free(host);
@@ -1792,10 +1790,13 @@ static char * setupKickstart(char * location, struct knownDevices * kd,
if (doPwMount(fullPath, "/mnt/source", "nfs", 1, 0, NULL, NULL))
return NULL;
-
- umount("/mnt/runtime");
- symlink("/mnt/source/RedHat/instimage", "/mnt/runtime");
+ if (mountLoopback("/mnt/source/RedHat/base/stage2.img",
+ "/mnt/runtime", "loop0")) {
+ umount("/mnt/source");
+ return NULL;
+ }
+
imageUrl = "nfs://mnt/source/.";
} else if (ksType == KS_CMD_URL) {
memset(&ui, 0, sizeof(ui));