summaryrefslogtreecommitdiffstats
path: root/loader2
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-03-13 16:01:45 -0400
committerChris Lumens <clumens@redhat.com>2008-03-13 16:01:45 -0400
commit4df2e30c9e1d9711eb96ff930dbad46eca99acb2 (patch)
treee1b442fbc6ed464d9b138893ae52a76ab24d042d /loader2
parent169b3a293dc5cbabff289e3fc719a2ffbadbc95c (diff)
downloadanaconda-4df2e30c9e1d9711eb96ff930dbad46eca99acb2.tar.gz
anaconda-4df2e30c9e1d9711eb96ff930dbad46eca99acb2.tar.xz
anaconda-4df2e30c9e1d9711eb96ff930dbad46eca99acb2.zip
Fix the format of the method=hd: parameter.
Diffstat (limited to 'loader2')
-rw-r--r--loader2/hdinstall.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/loader2/hdinstall.c b/loader2/hdinstall.c
index 4a633aa3c..d8b12af99 100644
--- a/loader2/hdinstall.c
+++ b/loader2/hdinstall.c
@@ -202,8 +202,9 @@ static char * setupIsoImages(char * device, char * dirName, char * location) {
flags &= ~LOADER_FLAGS_STAGE2;
goto err;
} else {
- rc = asprintf(&url, "hd://%s:%s:/%s", device, *type,
- dirName ? dirName : ".");
+ rc = asprintf(&url, "hd:%.*s:%s:/%s",
+ (int) (strrchr(device, '/') - device),
+ device, *type, dirName ? dirName : ".");
return url;
}
}
@@ -228,8 +229,9 @@ static char * setupIsoImages(char * device, char * dirName, char * location) {
} else {
queryIsoMediaCheck(path);
free(path);
- rc = asprintf(&url, "hd://%s:%s:/%s", device, *type,
- dirName ? dirName : ".");
+ rc = asprintf(&url, "hd:%.*s:%s:/%s",
+ (int) (strrchr(device, '/') - device),
+ device, *type, dirName ? dirName : ".");
return url;
}
}