FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 12-06-2011, 06:43 PM
David Lehman
 
Default Fix sense of disklabel size check and add some logging.

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.typ e)
+ 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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 05:28 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org