summaryrefslogtreecommitdiffstats
path: root/storage/devices.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2009-04-15 20:51:04 +0200
committerHans de Goede <hdegoede@redhat.com>2009-04-15 21:40:56 +0200
commit8c613ff16d81a25da58c3bab4c30fb282c95c1e1 (patch)
tree0053ae8b2fb6ded6a00d84451556bbe306d0b3d7 /storage/devices.py
parentec2d0cfa73ea69cdfd6a30a3eb9226d4469c3ff6 (diff)
downloadanaconda-8c613ff16d81a25da58c3bab4c30fb282c95c1e1.tar.gz
anaconda-8c613ff16d81a25da58c3bab4c30fb282c95c1e1.tar.xz
anaconda-8c613ff16d81a25da58c3bab4c30fb282c95c1e1.zip
Do not try to teardown a non existing format
I hit this (backtrace) while trying to reproduce 495356.
Diffstat (limited to 'storage/devices.py')
-rw-r--r--storage/devices.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/storage/devices.py b/storage/devices.py
index 090428680..6a8d4a9a9 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -2024,7 +2024,9 @@ class LVMLogicalVolumeDevice(DMDevice):
if not self.exists:
raise DeviceError("device has not been created")
- self.format.teardown()
+ if self.format.exists:
+ self.format.teardown()
+
udev_settle(timeout=10)
lvm.lvresize(self.vg.name, self._name, self.size)