[PATCH] Use the per-disk flag to disable cylinder alignment for msdos disklabels.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 storage/partitioning.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 5d176c4..97abf83 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -776,8 +776,9 @@ def doPartitioning(storage, exclusiveDisks=None):
         bootDev.req_bootable = True
 
     # turn off cylinder alignment
-    if parted.isAlignToCylinders():
-        parted.toggleAlignToCylinders()
+    for partedDisk in [d.format.partedDisk for d in disks]:
+        if partedDisk.isFlagAvailable(parted.DISK_CYLINDER_ALIGNMENT):
+            partedDisk.unsetFlag(parted.DISK_CYLINDER_ALIGNMENT)
 
     removeNewPartitions(disks, partitions)
     free = getFreeRegions(disks)
-- 
1.6.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux