Fix 4K alignment check under Linux

This commit is contained in:
2Shirt 2019-11-18 20:08:31 -07:00
parent 364f981a58
commit c75a67d34b
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -472,7 +472,7 @@ class DiskObj():
# Check partitions
for part in json_data.get('partitiontable', {}).get('partitions', []):
aligned = aligned and part.get('start', -1) % 4096 == 0
aligned = aligned and (part.get('start', -1) * self.lsblk['phy-sec']) % 4096 == 0
# Done
return aligned