From: Vojtech Trefny vtrefny@redhat.com
Running teardown on luks encrypted partition would close the LUKS device on it. Making it impossible to resize. Teardown only the filesystem on the LUKS device instead. --- blivet/devices/partition.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/blivet/devices/partition.py b/blivet/devices/partition.py index 5033c45..6487625 100644 --- a/blivet/devices/partition.py +++ b/blivet/devices/partition.py @@ -663,7 +663,11 @@ def _pre_resize(self): if not self.exists: raise errors.DeviceError("device has not been created", self.name)
- self.teardown() + # don't teardown when resizing luks + if self.format.type == "luks" and self.children: + self.children[0].format.teardown() + else: + self.teardown()
if not self.sysfs_path: return
anaconda-patches@lists.fedorahosted.org