[PATCH 1/5] Fix name checking for new thin lvs. (#1024076)
David Lehman
dlehman at redhat.com
Tue Nov 5 17:54:16 UTC 2013
---
blivet/__init__.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/blivet/__init__.py b/blivet/__init__.py
index dc97563..f83b5a9 100644
--- a/blivet/__init__.py
+++ b/blivet/__init__.py
@@ -1098,6 +1098,10 @@ class Blivet(object):
thin_volume = kwargs.pop("thin_volume", False)
thin_pool = kwargs.pop("thin_pool", False)
vg = kwargs.get("parents", [None])[0]
+ if thin_volume and vg:
+ # kwargs["parents"] will contain the pool device, so...
+ vg = vg.vg
+
mountpoint = kwargs.pop("mountpoint", None)
if kwargs.has_key("fmt_type"):
kwargs["format"] = getFormat(kwargs.pop("fmt_type"),
--
1.8.1.4
More information about the anaconda-patches
mailing list