Resolves: rhbz#671230 --- pyanaconda/platform.py | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/pyanaconda/platform.py b/pyanaconda/platform.py index c70b882..56a17cd 100644 --- a/pyanaconda/platform.py +++ b/pyanaconda/platform.py @@ -99,14 +99,20 @@ class Platform(object): """The best disklabel type for the specified device.""" # if there's a required type for this device type, use that labelType = self.requiredDiskLabelType(device.partedDevice.type) + log.debug("required disklabel type for %s (%s) is %s" + % (device.name, device.partedDevice.type, labelType)) if not labelType: # otherwise, use the first supported type for this platform # that is large enough to address the whole device labelType = self.defaultDiskLabelType + log.debug("default disklabel type for %s is %s" % (device.name, + labelType)) for lt in self.diskLabelTypes: l = parted.freshDisk(device=device.partedDevice, ty=lt) - if l.maxPartitionStartSector < device.partedDevice.length: + if l.maxPartitionStartSector > device.partedDevice.length: labelType = lt + log.debug("selecting %s disklabel for %s based on size" + % (labelType, device.name)) break return labelType -- 1.7.6 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list