[blivet] Update _name directly when tearing down loop devices (#1104558)

David Shea dshea at redhat.com
Wed Jun 4 18:46:34 UTC 2014


Resetting the name of loop devices needs to bypass the existing device
check.
---
 blivet/devices.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/devices.py b/blivet/devices.py
index cdd0642..7f38ebd 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -4250,7 +4250,7 @@ class LoopDevice(StorageDevice):
 
     def _postTeardown(self, recursive=False):
         StorageDevice._postTeardown(self, recursive=recursive)
-        self.name = "tmploop%d" % self.id
+        self._name = "tmploop%d" % self.id
         self.sysfsPath = ''
 
     @property
-- 
1.9.0



More information about the anaconda-patches mailing list