diff -ru anaconda-13.21.215.orig/storage/partitioning.py anaconda-13.21.215/storage/partitioning.py --- anaconda-13.21.215.orig/storage/partitioning.py 2014-03-18 15:53:30.178412348 -0400 +++ anaconda-13.21.215/storage/partitioning.py 2014-03-18 16:01:09.724292482 -0400 @@ -141,7 +141,7 @@ raid_devs.append(dev) dev = anaconda.id.storage.newMDArray(fmt_type=request.fstype, - mountpoint=request.mountpoint, level="raid1", + mountpoint=request.mountpoint, level="raid" + request.raidLevel, parents=raid_devs, memberDevices=len(raid_devs)) anaconda.id.storage.createDevice(dev) diff -ru anaconda-13.21.215.orig/storage/partspec.py anaconda-13.21.215/storage/partspec.py --- anaconda-13.21.215.orig/storage/partspec.py 2014-03-18 15:53:30.156412448 -0400 +++ anaconda-13.21.215/storage/partspec.py 2014-03-18 16:05:19.340127635 -0400 @@ -22,7 +22,7 @@ class PartSpec(object): def __init__(self, mountpoint=None, fstype=None, size=None, maxSize=None, grow=False, asVol=False, singlePV=False, weight=0, - requiredSpace=0, useRAID=False): + requiredSpace=0, raidLevel="1"): """ Create a new storage specification. These are used to specify the default partitioning layout as an object before we have the storage system up and running. The attributes are obvious @@ -45,7 +45,8 @@ other LVs are created inside it. If not enough space exists, this PartSpec will never get turned into an LV. - useRAID -- Should a RAID1 array be created for this volume? If + raidLevel Level of raid to create, or "none" if no raid + useRAID -- Should a RAID array be created for this volume? If not, it will be allocated as a partition. """ @@ -58,7 +59,11 @@ self.singlePV = singlePV self.weight = weight self.requiredSpace = requiredSpace - self.useRAID = useRAID + if raidLevel == "none": + self.useRAID = False + else: + self.useRAID = True + self.raidLevel = raidLevel if self.singlePV and not self.asVol: self.asVol = True @@ -67,11 +72,13 @@ s = ("%(type)s instance (%(id)s) -- \n" " mountpoint = %(mountpoint)s asVol = %(asVol)s singlePV = %(singlePV)s\n" " weight = %(weight)s fstype = %(fstype)s\n" - " size = %(size)s maxSize = %(maxSize)s grow = %(grow)s\n" % + " size = %(size)s maxSize = %(maxSize)s grow = %(grow)s\n" + " raid level = %(level)\n" % {"type": self.__class__.__name__, "id": "%#x" % id(self), "mountpoint": self.mountpoint, "asVol": self.asVol, "singlePV": self.singlePV, "weight": self.weight, "fstype": self.fstype, "size": self.size, - "maxSize": self.maxSize, "grow": self.grow}) + "maxSize": self.maxSize, "grow": self.grow, + "level": self.raidLevel}) return s