diff options
author | David Lehman <dlehman@redhat.com> | 2008-04-03 20:05:09 -0500 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2008-04-07 11:55:23 -0500 |
commit | 649aecb37de132eebbbfd29949fc43a61ecc762b (patch) | |
tree | c428f52863e47d5feaf5654437875e42a7ac23f0 /partRequests.py | |
parent | d36906e57252d26fe80e0716e8dfdddf59cc70a7 (diff) | |
download | anaconda-649aecb37de132eebbbfd29949fc43a61ecc762b.tar.gz anaconda-649aecb37de132eebbbfd29949fc43a61ecc762b.tar.xz anaconda-649aecb37de132eebbbfd29949fc43a61ecc762b.zip |
Support encrypted RAID member devices. (#429600)
When creating the RAIDDevice instance, pass in Device instances (as
opposed to device names) for the members list. This way we have all
the information we need to set up the RAID, including encryption
stuff. Previously we instantiated Devices for the RAID members in the
setupDevice method. Now we just use the preexisting Device instances
from the member RequestSpecs.
Diffstat (limited to 'partRequests.py')
-rw-r--r-- | partRequests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/partRequests.py b/partRequests.py index 0b77e4ca0..cf83b2540 100644 --- a/partRequests.py +++ b/partRequests.py @@ -690,7 +690,8 @@ class RaidRequestSpec(RequestSpec): # Alway return a new device for minor changing raidmems = [] for member in self.raidmembers: - raidmems.append(partitions.getRequestByID(member).device) + request = partitions.getRequestByID(member) + raidmems.append(request.getDevice(partitions)) self.dev = fsset.RAIDDevice(int(self.raidlevel[4:]), raidmems, minor = self.raidminor, spares = self.raidspares, |