summaryrefslogtreecommitdiffstats
path: root/pyanaconda/storage/devices.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyanaconda/storage/devices.py')
-rw-r--r--pyanaconda/storage/devices.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pyanaconda/storage/devices.py b/pyanaconda/storage/devices.py
index dc4d93051..85bfa1e07 100644
--- a/pyanaconda/storage/devices.py
+++ b/pyanaconda/storage/devices.py
@@ -1686,7 +1686,7 @@ class DMLinearDevice(DMDevice):
# information about it
self._size = self.currentSize
- def deactivate(self):
+ def deactivate(self, recursive=False):
if not self.exists:
raise DeviceError("device has not been created", self.name)
@@ -1702,6 +1702,9 @@ class DMLinearDevice(DMDevice):
dm.dm_remove(self.name)
udev_settle()
+ if recursive:
+ self.teardownParents(recursive=recursive)
+
def teardown(self, recursive=None):
""" Close, or tear down, a device. """
log_method_call(self, self.name, status=self.status)