|
|
|
@ -26,7 +26,7 @@ import operator
|
|
|
|
|
from cl_utils import runOsCommand,isMount,removeDir,typeFile,pathJoin, \
|
|
|
|
|
process,getRunCommands,getTupleVersion,cmpVersion, \
|
|
|
|
|
detectDeviceForPartition, getProgPath,listDirectory, \
|
|
|
|
|
checkUtils,STDOUT,getUdevDeviceInfo
|
|
|
|
|
checkUtils,STDOUT,getUdevDeviceInfo, countPartitions
|
|
|
|
|
from cl_vars_share import varsShare
|
|
|
|
|
from shutil import copyfile,copytree
|
|
|
|
|
from cl_template import _terms
|
|
|
|
@ -936,7 +936,7 @@ class PartitionDistributive(Distributive):
|
|
|
|
|
elif deviceName == "":
|
|
|
|
|
return True
|
|
|
|
|
fdiskProg, gdiskProg = checkUtils('/sbin/fdisk','/usr/sbin/gdisk')
|
|
|
|
|
partitionNumber = getUdevDeviceInfo(dev).get('ID_PART_ENTRY_NUMBER','')
|
|
|
|
|
partitionNumber = getUdevDeviceInfo(name=dev).get('ID_PART_ENTRY_NUMBER','')
|
|
|
|
|
devicePartitionCount = countPartitions(deviceName)
|
|
|
|
|
if deviceName and not partitionNumber:
|
|
|
|
|
raise DistributiveError(
|
|
|
|
|