Fix grub partnumber.

lvmraid
Mike Hiretsky 13 years ago
parent c6fc50e0e0
commit 52880b957f

@ -310,8 +310,8 @@ class fillVars(object, glob_attr):
dev_hash['options'] = fstab.getBy(what=fstab.OPTS,eq=devName) or ""
dev_hash['size'] = getPartitionSize(disk)
if devParent in devicesHash and 'ID_PART_ENTRY_NUMBER' in props:
dev_hash['grub'] = "%s,%s"%(devicesHash[devParent]['map'],
props['ID_PART_ENTRY_NUMBER'])
dev_hash['grub'] = "%s,%d"%(devicesHash[devParent]['map'],
int(props['ID_PART_ENTRY_NUMBER'])-1)
else:
dev_hash['grub'] = ""
disk_hash[devName] = dev_hash

Loading…
Cancel
Save