From: Vojtech Trefny <vtrefny(a)redhat.com>
---
blivet/devices/partition.py | 3 ---
1 file changed, 3 deletions(-)
diff --git a/blivet/devices/partition.py b/blivet/devices/partition.py
index ce358e3..5033c45 100644
--- a/blivet/devices/partition.py
+++ b/blivet/devices/partition.py
@@ -663,9 +663,6 @@ def _pre_resize(self):
if not self.exists:
raise errors.DeviceError("device has not been created", self.name)
- if not self.isleaf and not self.is_extended:
- raise errors.DeviceError("Cannot destroy non-leaf device",
self.name)
-
self.teardown()
if not self.sysfs_path:
--
To view this commit on github, visit
https://github.com/rhinstaller/blivet/commit/c735f7f057e63698e24e7f3da529...