summaryrefslogtreecommitdiffstats
path: root/loader2
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-03-05 10:29:08 -0500
committerChris Lumens <clumens@redhat.com>2008-03-05 10:29:08 -0500
commit8b6c8f0ecdd60f051a3b9cb441213363a4470fce (patch)
treefa9bf7916e87609293a3857acdfc6952b457ebfd /loader2
parent6554d0b1c1b3a686730fd33e0ed9b3962da15080 (diff)
downloadanaconda-8b6c8f0ecdd60f051a3b9cb441213363a4470fce.tar.gz
anaconda-8b6c8f0ecdd60f051a3b9cb441213363a4470fce.tar.xz
anaconda-8b6c8f0ecdd60f051a3b9cb441213363a4470fce.zip
Use the right path to the .discinfo file when validating a tree.
Diffstat (limited to 'loader2')
-rw-r--r--loader2/urlinstall.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/loader2/urlinstall.c b/loader2/urlinstall.c
index 7dfc20028..a387a3171 100644
--- a/loader2/urlinstall.c
+++ b/loader2/urlinstall.c
@@ -205,7 +205,7 @@ static int loadUrlImages(struct iurlinfo * ui) {
char * mountUrlImage(struct installMethod * method,
char * location, struct loaderData_s * loaderData) {
int rc;
- char * url;
+ char *url, *buf;
struct iurlinfo ui;
char needsSecondary = ' ';
int dir = 1;
@@ -276,13 +276,14 @@ char * mountUrlImage(struct installMethod * method,
if (cdurl) {
/* verify that our URL is specifying the correct tree */
/* we do this by attempting to pull a .discinfo file */
- if (loadSingleUrlImage(&ui, ".discinfo", NULL, NULL, NULL, 1)) {
+ rc = asprintf(&buf, "%s/.discinfo", ui->address);
+ if (loadSingleUrlImage(&ui, buf, NULL, NULL, NULL, 1)) {
+ free(buf);
umountStage2();
umount(location);
unlink("/tmp/cdrom");
stage = URL_STAGE_MAIN;
- flags &= ~LOADER_FLAGS_STAGE2;
dir = -1;
if (loaderData->method >= 0)
@@ -296,6 +297,7 @@ char * mountUrlImage(struct installMethod * method,
_("Local installation media detected..."), 0);
sleep(3);
newtPopWindow();
+ free(buf);
stage = URL_STAGE_DONE;
dir = 1;