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

Re: PATCH - software raid for ppc on installation



On Sat, 2005-05-07 at 15:14 -0400, Jeremy Katz wrote:
> Cool, thanks for the patch.  Some comments below.
...


I've updated this patch considering Jeremy's comments.  Looks like he
was right and this is a much simpler patch...  Trivial even?

New patch attached.

:-Dustin


--- anaconda-10.1.1.13/raid.py.swraidppc	2004-05-19 19:07:02.000000000 -0400
+++ anaconda-10.1.1.13/raid.py	2005-05-18 18:07:28.000000000 -0400
@@ -25,7 +25,7 @@
 
 # these arches can have their /boot on RAID and not have their
 # boot loader blow up
-raidBootArches = [ "i386", "x86_64" ]
+raidBootArches = [ "i386", "x86_64", "ppc" ]
 
 def scanForRaid(drives):
     """Scans for raid devices on drives.
--- anaconda-10.1.1.13/partitions.py.swraidppc	2004-12-08 23:07:55.000000000 -0500
+++ anaconda-10.1.1.13/partitions.py	2005-05-18 18:09:28.000000000 -0400
@@ -623,17 +623,10 @@
             # for the prep partition, we want either the first or the
             # first non-preexisting one
             bestprep = None
+	    ret = []
             for req in self.requests:
                 if req.fstype == fsset.fileSystemTypeGet("PPC PReP Boot"):
-                    if ((bestprep is None) or
-                        (bestprep.getPreExisting() and
-                         not req.getPreExisting())):
-                        bestprep = req
-
-            if bestprep:
-                ret = [ bestprep ]
-            else:
-                ret = []
+		    ret.append(req)
 
             # now add the /boot
             bootreq = self.getRequestByMountPoint("/boot")
--- anaconda-10.1.1.13/fsset.py.swraidppc	2004-12-14 16:25:04.000000000 -0500
+++ anaconda-10.1.1.13/fsset.py	2005-05-18 18:07:28.000000000 -0400
@@ -825,6 +825,7 @@
     def __init__(self):
         FileSystemType.__init__(self)
         self.partedFileSystemType = None
+        self.partedPartitionFlags = [ parted.PARTITION_BOOT ]
         self.checked = 0
         self.name = "PPC PReP Boot"
         self.maxSizeMB = 10
@@ -1178,7 +1179,7 @@
 
         f.close()
         
-    # return the "boot" devicce
+    # return the "boot" device
     def getBootDev(self):
 	mntDict = {}
         bootDev = None

Attachment: signature.asc
Description: This is a digitally signed message part


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