[blivet] Fix DeviceCreateError Could not commit to disk /dev/mapper/mpatha py_ped_disk_commit (#969182)
Mark Hamzy
hamzy at us.ibm.com
Mon Jun 10 16:02:51 UTC 2013
This fixes bug 969182. If a udev devices is created with the watch option, then
a change uevent is synthesized and we need to wait for things to settle.
---
blivet/devices.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/blivet/devices.py b/blivet/devices.py
index 1587b91..4f502b5 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -1480,6 +1480,11 @@ class PartitionDevice(StorageDevice):
util.run_program(cmd)
except OSError as e:
log.error(str(e))
+ else:
+ # If a udev devices is created with the watch option, then
+ # a change uevent is synthesized and we need to wait for
+ # things to settle.
+ udev_settle()
def _create(self):
""" Create the device. """
--
1.8.1.4
More information about the anaconda-patches
mailing list