[PATCH 1/2] No more sparc support

Vratislav Podzimek vpodzime at redhat.com
Tue Jul 23 10:39:56 UTC 2013


This fixes a traceback introduced with changes to the blivet/arch.py module
without modifying blivet/platform.py.

Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 blivet/devicelibs/lvm.py |  2 +-
 blivet/platform.py       | 15 ---------------
 2 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/blivet/devicelibs/lvm.py b/blivet/devicelibs/lvm.py
index 24e19c0..c2a6dbd 100644
--- a/blivet/devicelibs/lvm.py
+++ b/blivet/devicelibs/lvm.py
@@ -136,7 +136,7 @@ def getPossiblePhysicalExtents(floor=0):
 
 def getMaxLVSize():
     """ Return the maximum size (in MB) of a logical volume. """
-    if arch.getArch() in ("x86_64", "ppc64", "alpha", "ia64", "s390", "sparc"): #64bit architectures
+    if arch.getArch() in ("x86_64", "ppc64", "alpha", "ia64", "s390"): #64bit architectures
         return (8*1024*1024*1024*1024) #Max is 8EiB (very large number..)
     else:
         return (16*1024*1024) #Max is 16TiB
diff --git a/blivet/platform.py b/blivet/platform.py
index 69005d9..185d82e 100644
--- a/blivet/platform.py
+++ b/blivet/platform.py
@@ -304,19 +304,6 @@ class S390(Platform):
 
         return super(S390, self).requiredDiskLabelType(device_type)
 
-class Sparc(Platform):
-    _boot_stage1_format_types = []
-    _boot_stage1_mountpoints = []
-    _boot_stage1_max_end_mb = None
-    _disklabel_types = ["sun"]
-
-    @property
-    def minimumSector(self, disk):
-        (cylinders, heads, sectors) = disk.device.biosGeometry
-        start = long(sectors * heads)
-        start /= long(1024 / disk.device.sectorSize)
-        return start+1
-
 class ARM(Platform):
     _armMachine = None
     _boot_stage1_device_types = ["disk"]
@@ -387,8 +374,6 @@ def getPlatform():
             raise SystemError, "Unsupported PPC machine type: %s" % ppcMachine
     elif arch.isS390():
         return S390()
-    elif arch.isSparc():
-        return Sparc()
     elif arch.isEfi():
         if arch.isMactel():
             return MacEFI()
-- 
1.7.11.7



More information about the anaconda-patches mailing list