[PATCH 1/3] Let the udev queue settle before populating the devicetree. (#1049772)
David Lehman
dlehman at redhat.com
Thu Feb 20 18:07:02 UTC 2014
In this case we open a LUKS device from the custom spoke in anaconda
and then call populate, but an LVM PV on the opened LUKS device can
take some time to get setup.
---
blivet/devicetree.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index 69d65f8..ef4f8ab 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -2043,6 +2043,9 @@ class DeviceTree(object):
log.info("DeviceTree.populate: ignoredDisks is %s ; exclusiveDisks is %s"
% (self.ignoredDisks, self.exclusiveDisks))
+ # this has proven useful when populating after opening a LUKS device
+ udev_settle()
+
if flags.installer_mode and not flags.image_install:
devicelibs.mpath.set_friendly_names(enabled=flags.multipath_friendly_names)
--
1.8.5.3
More information about the anaconda-patches
mailing list