summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-05-31 05:59:56 +0000
committerJeremy Katz <katzj@redhat.com>2002-05-31 05:59:56 +0000
commit8afde99af96ce8cb5ded6fb919eec60caa5ff237 (patch)
tree87197601ef20874781ff641c3cf8c2fb327346f5
parent84d228fa725966d83c0287ff30c908bd6d1a13b5 (diff)
downloadanaconda-8afde99af96ce8cb5ded6fb919eec60caa5ff237.tar.gz
anaconda-8afde99af96ce8cb5ded6fb919eec60caa5ff237.tar.xz
anaconda-8afde99af96ce8cb5ded6fb919eec60caa5ff237.zip
lvm on top of raid now works via kickstart
-rw-r--r--fsset.py6
-rw-r--r--partRequests.py2
2 files changed, 3 insertions, 5 deletions
diff --git a/fsset.py b/fsset.py
index 7388b0fab..fd832ddb3 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1473,7 +1473,7 @@ class RAIDDevice(Device):
if not self.isSetup:
raidtab = '/tmp/raidtab.%s' % (self.device,)
f = open(raidtab, 'w')
- f.write(self.raidTab('/tmp'))
+ f.write(self.raidTab(devPrefix=devPrefix))
f.close()
for device in self.members:
PartitionDevice(device).setupDevice(chroot,
@@ -1523,9 +1523,7 @@ class VolumeGroupDevice(Device):
nodes = []
for volume in self.physicalVolumes:
# XXX the lvm tools are broken and will only work for /dev
- node = PartitionDevice(volume).setupDevice(chroot,
- devPrefix="/dev")
-# node = "/dev/%s" % (volume,)
+ node = volume.setupDevice(chroot, devPrefix="/dev")
# now make the device into a real physical volume
# XXX I don't really belong here. should
diff --git a/partRequests.py b/partRequests.py
index 7e1e757f5..7095c7aa2 100644
--- a/partRequests.py
+++ b/partRequests.py
@@ -609,7 +609,7 @@ class VolumeGroupRequestSpec(RequestSpec):
"""Return a device which can be solidified."""
pvs = []
for pv in self.physicalVolumes:
- pvs.append(partitions.getRequestByID(pv).device)
+ pvs.append(partitions.getRequestByID(pv).getDevice(partitions))
dev = fsset.VolumeGroupDevice(self.volumeGroupName, pvs)
return dev