summaryrefslogtreecommitdiffstats
path: root/partitions.py
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2008-08-08 16:45:32 -0400
committerPeter Jones <pjones@pjones2.localdomain>2008-08-13 10:45:58 -0400
commit253f400d994b84aa19856b61a19aa211ac71a246 (patch)
tree0523045dfe86480dcd9b47bbd5aea242ec553070 /partitions.py
parentb612cd8ad3ebe5ae23b5a30464e9ed2854ede836 (diff)
downloadanaconda-253f400d994b84aa19856b61a19aa211ac71a246.tar.gz
anaconda-253f400d994b84aa19856b61a19aa211ac71a246.tar.xz
anaconda-253f400d994b84aa19856b61a19aa211ac71a246.zip
Don't base mpath/dmraid/raid startup/stopping based on if lvm is activated yet,
since they might be started before there are any LVs. (this fixes dmraid.)
Diffstat (limited to 'partitions.py')
-rw-r--r--partitions.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/partitions.py b/partitions.py
index 8fc6a75fc..ed9d4fac5 100644
--- a/partitions.py
+++ b/partitions.py
@@ -1656,9 +1656,13 @@ class Partitions:
"""Does resizing of non-physical volumes."""
# have to have lvm on, which requires raid to be started
- diskset.startMPath()
- diskset.startDmRaid()
- diskset.startMdRaid()
+ devicesActive = diskset.devicesOpen
+ if not devicesActive:
+ # should this not be diskset.openDevices() ?
+ diskset.startMPath()
+ diskset.startDmRaid()
+ diskset.startMdRaid()
+
for luksDev in self.encryptedDevices.values():
luksDev.openDevice()
lvm.vgactivate()
@@ -1680,9 +1684,12 @@ class Partitions:
lvm.vgdeactivate()
for luksDev in self.encryptedDevices.values():
luksDev.closeDevice()
- diskset.stopMdRaid()
- diskset.stopDmRaid()
- diskset.stopMPath()
+
+ if not devicesActive:
+ # should this not be diskset.closeDevices() ?
+ diskset.stopMdRaid()
+ diskset.stopDmRaid()
+ diskset.stopMPath()
def deleteDependentRequests(self, request):
"""Handle deletion of this request and all requests which depend on it.