[PATCH 2/5] Catch LVMErrors too when tearing down devices

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

 



When tearing down devices in devicetree.populate() we may fail to teardown
certain LV's because they can be mounted (in the livecd case).
---
 storage/devicetree.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index a2d0386..8ae91ee 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1332,7 +1332,7 @@ class DeviceTree(object):
         for device in self.leaves:
             try:
                 device.teardown(recursive=True)
-            except (DeviceError, DeviceFormatError) as e:
+            except (DeviceError, DeviceFormatError, LVMError) as e:
                 log.info("teardown of %s failed: %s" % (device.name, e))
 
     def setupAll(self):
-- 
1.6.1.3

_______________________________________________
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