summaryrefslogtreecommitdiffstats
path: root/partitions.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-06-12 18:01:29 +0000
committerJeremy Katz <katzj@redhat.com>2002-06-12 18:01:29 +0000
commit8f65ea81c6ae9d20d3ca42ef470283165a496d9a (patch)
tree4a224fdf7c74111b10fe0dd2237c738a3812a669 /partitions.py
parent9df5b632380547fe3e44b6f3a8d68ce4fd983a3d (diff)
downloadanaconda-8f65ea81c6ae9d20d3ca42ef470283165a496d9a.tar.gz
anaconda-8f65ea81c6ae9d20d3ca42ef470283165a496d9a.tar.xz
anaconda-8f65ea81c6ae9d20d3ca42ef470283165a496d9a.zip
start/stop raid around doing meta deletes... otherwise, removing lvm stuff can fail
Diffstat (limited to 'partitions.py')
-rw-r--r--partitions.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/partitions.py b/partitions.py
index 8205da575..9f3a319ed 100644
--- a/partitions.py
+++ b/partitions.py
@@ -979,10 +979,11 @@ class Partitions:
return None
- def doMetaDeletes(self):
+ def doMetaDeletes(self, diskset):
"""Does the removal of all of the non-physical volumes in the delete list."""
- # have to have lvm on first
+ # have to have lvm on, which requires raid to be started
+ diskset.startAllRaid()
lvm.vgactivate()
# now, go through and delete logical volumes
@@ -996,6 +997,7 @@ class Partitions:
lvm.vgremove(delete.name)
lvm.vgdeactivate()
+ diskset.stopAllRaid()
def deleteDependentRequests(self, request):