diff options
author | David Lehman <dlehman@redhat.com> | 2009-05-15 12:38:28 -0500 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2009-05-15 17:36:46 -0500 |
commit | 000c6640a2e20d11ac7e8aec228eac8f1789a909 (patch) | |
tree | f41a475d5aef636109cf153c091579c1dfb88b16 | |
parent | 80e50c5b0fad22a47570606edd66eff98e1d813a (diff) | |
download | anaconda-000c6640a2e20d11ac7e8aec228eac8f1789a909.tar.gz anaconda-000c6640a2e20d11ac7e8aec228eac8f1789a909.tar.xz anaconda-000c6640a2e20d11ac7e8aec228eac8f1789a909.zip |
Deactivate md arrays regardless of state if the device is present. (#496441)
Instead of only deactivating an array whose state is some variation on
"active", try to deactivate any array that appears to be assembled.
-rw-r--r-- | storage/devices.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/storage/devices.py b/storage/devices.py index 7d4d24e12..3dfc8785e 100644 --- a/storage/devices.py +++ b/storage/devices.py @@ -2494,7 +2494,10 @@ class MDRaidArrayDevice(StorageDevice): self.format.teardown() udev_settle(timeout=10) - if self.status: + # We don't really care what the array's state is. If the device + # file exists, we want to deactivate it. mdraid has too many + # states. + if self.exists and os.path.exists(self.path): mdraid.mddeactivate(self.path) if recursive: |