- lvm_partition= "%s1" % device
- cciss_lvm_partition= "%sp1" % device
- cmd = "pvdisplay %s | grep -q 'planetlab'"
+ lvm_partition= InstallPartitionDisks.get_partition_path_from_device( device, vars, log )
+ cmd = "pvdisplay %s | grep -q 'planetlab'" % lvm_partition
+ already_added= utils.sysexec_noerr(cmd, log)