diff options
-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: |