[PATCH 4/6] Don't set up a child factory if the container is set and exists.
David Lehman
dlehman at redhat.com
Wed May 29 15:46:17 UTC 2013
---
blivet/devicefactory.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/blivet/devicefactory.py b/blivet/devicefactory.py
index 5857969..7a224d0 100644
--- a/blivet/devicefactory.py
+++ b/blivet/devicefactory.py
@@ -669,7 +669,8 @@ class DeviceFactory(object):
return {"fstype": self.child_factory_fstype}
def _set_up_child_factory(self):
- if self.child_factory or not self.child_factory_class:
+ if self.child_factory or not self.child_factory_class or \
+ self.container and self.container.exists:
return
args = self._get_child_factory_args()
--
1.8.1.4
More information about the anaconda-patches
mailing list