summaryrefslogtreecommitdiffstats
path: root/loader/loader.c
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-01-19 07:20:56 +0000
committerMatt Wilson <msw@redhat.com>2001-01-19 07:20:56 +0000
commit5522e0fe29abc887833419714a331a9af9e615c8 (patch)
tree4e7dd3e28a3297e9fe8b7cdd6054cf9665ed9286 /loader/loader.c
parentb6f6d58764989e1abe443621d409485f4795d601 (diff)
downloadanaconda-5522e0fe29abc887833419714a331a9af9e615c8.tar.gz
anaconda-5522e0fe29abc887833419714a331a9af9e615c8.tar.xz
anaconda-5522e0fe29abc887833419714a331a9af9e615c8.zip
instert 'p' in /dev/cciss/c0d0pN for hd installs
Diffstat (limited to 'loader/loader.c')
-rw-r--r--loader/loader.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/loader/loader.c b/loader/loader.c
index 6ac9aef14..66b45a8d8 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -780,8 +780,16 @@ static char * mountHardDrive(struct installMethod * method,
#endif
case BALKAN_PART_DOS:
case BALKAN_PART_EXT2:
- sprintf(partitions[numPartitions].name,
- "/dev/%s%d", kd->known[i].name, j + 1);
+ if (!strncmp (kd->known[i].name, "cciss/", 6) ||
+ !strncmp (kd->known[i].name, "ida/", 4) ||
+ !strncmp (kd->known[i].name, "rd/", 3))
+
+ sprintf(partitions[numPartitions].name,
+ "/dev/%sp%d", kd->known[i].name, j + 1);
+ else
+ sprintf(partitions[numPartitions].name,
+ "/dev/%s%d", kd->known[i].name, j + 1);
+
partitions[numPartitions].type =
table.parts[j].type;
numPartitions++;