[blivet][master/rhel7-branch Use container's parent's name for PV if available (#1065737)
Vratislav Podzimek
vpodzime at redhat.com
Fri Mar 7 10:03:53 UTC 2014
When modifying the PV in the LVMFactory, we want to keep its name.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
blivet/devicefactory.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/blivet/devicefactory.py b/blivet/devicefactory.py
index 5e0b7f1..e8af129 100644
--- a/blivet/devicefactory.py
+++ b/blivet/devicefactory.py
@@ -1206,6 +1206,7 @@ class LVMFactory(DeviceFactory):
kwargs["raid_level"] = self.container_raid_level
if self.container and self.container.parents:
kwargs["device"] = self.container.parents[0]
+ kwargs["name"] = self.container.parents[0].name
else:
kwargs["name"] = self.storage.suggestDeviceName(prefix="pv")
--
1.8.5.3
More information about the anaconda-patches
mailing list