diff options
author | Chris Lumens <clumens@redhat.com> | 2008-03-11 18:29:53 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2008-03-11 18:29:53 -0400 |
commit | 04d4799e734f9903fb1a00a8eb804da2e95e0a3d (patch) | |
tree | 7b2b92525f142be872e78e1f084b39e26a412c32 /loader2 | |
parent | 997cda1b37d1761c0d0f7a1f3c823f72b57549eb (diff) | |
download | anaconda-04d4799e734f9903fb1a00a8eb804da2e95e0a3d.tar.gz anaconda-04d4799e734f9903fb1a00a8eb804da2e95e0a3d.tar.xz anaconda-04d4799e734f9903fb1a00a8eb804da2e95e0a3d.zip |
Fix detection of ISO images on a hard drive partition.
Diffstat (limited to 'loader2')
-rw-r--r-- | loader2/hdinstall.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/loader2/hdinstall.c b/loader2/hdinstall.c index 35a8fd6a6..4a633aa3c 100644 --- a/loader2/hdinstall.c +++ b/loader2/hdinstall.c @@ -172,12 +172,12 @@ static char * setupIsoImages(char * device, char * dirName, char * location) { rc = asprintf(&filespec, "/mnt/isodir%.*s", (int) (strrchr(dirName, '/') - dirName), dirName); path = strdup(filespec); } else { - path = validIsoImages(filespec, 0); - if (*dirName == '/') rc = asprintf(&filespec, "/mnt/isodir%s", dirName); else rc = asprintf(&filespec, "/mnt/isodir/%s", dirName); + + path = validIsoImages(filespec, 0); } if (path) { @@ -431,7 +431,7 @@ char * mountHardDrive(struct installMethod * method, logMessage(INFO, "partition %s selected", selpart); - url = setupIsoImages(selpart + 5, dir, location); + url = setupIsoImages(selpart, dir, location); if (!url) { newtWinMessage(_("Error"), _("OK"), _("Device %s does not appear to contain " |