[PATCH 1/4] Fix check for in-use LV name to include VG name. (#875477)

David Lehman dlehman at redhat.com
Wed Nov 21 19:44:37 UTC 2012


---
 pyanaconda/storage/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/storage/__init__.py b/pyanaconda/storage/__init__.py
index 185fabb..4b3ba0f 100644
--- a/pyanaconda/storage/__init__.py
+++ b/pyanaconda/storage/__init__.py
@@ -1130,7 +1130,7 @@ class Storage(object):
                                           swap=swap,
                                           mountpoint=mountpoint)
 
-        if name in self.names:
+        if "%s-%s" % (vg.name, name) in self.names:
             raise ValueError("name already in use")
 
         return LVMLogicalVolumeDevice(name, *args, **kwargs)
-- 
1.7.7.6



More information about the anaconda-patches mailing list