Fix detect primary,extended,logical partitions type.

Udev info for some partition not contains ID_PART_TABLE_TYPE.
Get that information from ID_PART_ENTRY_SCHEME.
develop
Mike Hiretsky 13 years ago
parent 22c7e2eac3
commit b4264c5523

@ -1227,7 +1227,7 @@ def getRaidPartitions(raidpath):
def getPartitionType(prop):
"""Get type of dos part table (primary,extended or logical)"""
if prop.get('ID_PART_TABLE_TYPE') == 'dos':
if prop.get('ID_PART_ENTRY_SCHEME') == 'dos':
partId = prop.get('ID_PART_ENTRY_TYPE','')
partNumber = prop.get('ID_PART_ENTRY_NUMBER','')
if partId and partNumber:

Loading…
Cancel
Save