[PATCH 1/9] Catch exceptions when trying to remove devices from libparted's cache.
David Lehman
dlehman at redhat.com
Wed Jul 25 21:48:26 UTC 2012
---
pyanaconda/storage/deviceaction.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/pyanaconda/storage/deviceaction.py b/pyanaconda/storage/deviceaction.py
index b16573a..617d8b2 100644
--- a/pyanaconda/storage/deviceaction.py
+++ b/pyanaconda/storage/deviceaction.py
@@ -288,7 +288,10 @@ class ActionDestroyDevice(DeviceAction):
# Make sure libparted does not keep cached info for this device
# and returns it when we create a new device with the same name
if self.device.partedDevice:
- self.device.partedDevice.removeFromCache()
+ try:
+ self.device.partedDevice.removeFromCache()
+ except Exception:
+ pass
def requires(self, action):
""" Return True if self requires action.
--
1.7.7.6
More information about the anaconda-patches
mailing list