X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FInstallPartitionDisks.py;h=42ce5e5baf0df5b2efa496aae8daf7588ba6ec1f;hb=48bd014c62be29904375de5144350bc935a4c029;hp=d7c64688eea55fc0ffd22d92f4bbc7d9ff6ffe7a;hpb=694c9c9272fd30cc7016f31c1562ed2d56ac234c;p=bootmanager.git diff --git a/source/steps/InstallPartitionDisks.py b/source/steps/InstallPartitionDisks.py index d7c6468..42ce5e5 100644 --- a/source/steps/InstallPartitionDisks.py +++ b/source/steps/InstallPartitionDisks.py @@ -293,11 +293,14 @@ def get_partition_path_from_device( device, vars, log ): else: part_path= device + "1" else: - # since device ends in /disc, we need to make it end in + # if device ends in /disc, we need to make it end in # /part1 to indicate the first partition (for devfs based 2.x cds) dev_parts= string.split(device,"/") - dev_parts[len(dev_parts)-1]= "part1" - part_path= string.join(dev_parts,"/") + if dev_parts[-1] == "disc": + dev_parts[-1]= "part1" + part_path= string.join(dev_parts,"/") + else: + part_path= device + "1" return part_path