[PATCH 1/2] Do not try to teardown a non existing format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I hit this (backtrace) while trying to reproduce 495356.
---
 storage/devices.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 0904286..6a8d4a9 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)
 
-- 
1.6.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux