Fix 4K alignment check under Linux
This commit is contained in:
parent
364f981a58
commit
c75a67d34b
1 changed files with 1 additions and 1 deletions
|
|
@ -472,7 +472,7 @@ class DiskObj():
|
||||||
|
|
||||||
# Check partitions
|
# Check partitions
|
||||||
for part in json_data.get('partitiontable', {}).get('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
|
# Done
|
||||||
return aligned
|
return aligned
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue