summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--packages.py2
-rw-r--r--partitions.py6
2 files changed, 5 insertions, 3 deletions
diff --git a/packages.py b/packages.py
index 1d4bee5fc..b28e41233 100644
--- a/packages.py
+++ b/packages.py
@@ -385,7 +385,7 @@ def turnOnFilesystems(dir, thefsset, diskset, partitions, upgrade, instPath):
if flags.setupFilesystems:
if not upgrade.get():
- partitions.doMetaDeletes()
+ partitions.doMetaDeletes(diskset)
thefsset.setActive(diskset)
if not thefsset.isActive():
diskset.savePartitions ()
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):