[dev-python/python-blivet] add udevadm settle patch for commitToDisk

This commit is contained in:
Fabio Erculiani
2014-12-07 13:26:00 +00:00
parent cf39bb70c8
commit 1a3cc22e54
2 changed files with 15 additions and 0 deletions
@@ -0,0 +1,12 @@
diff --git a/blivet/formats/disklabel.py b/blivet/formats/disklabel.py
index 5015548..9071596 100644
--- a/blivet/formats/disklabel.py
+++ b/blivet/formats/disklabel.py
@@ -304,6 +304,7 @@ class DiskLabel(DeviceFormat):
raise DiskLabelCommitError(msg)
else:
self.updateOrigPartedDisk()
+ udev_settle()
def addPartition(self, *args, **kwargs):
partition = kwargs.get("partition", None)
@@ -48,5 +48,8 @@ src_prepare() {
# enable UUID= support for dm-based devices (dmcrypt, md, etc)
epatch "${FILESDIR}/0001-devices-enable-UUID-for-dm-based-devices-in-fstab.patch"
# Sabayon: commitToDisk should wait on udev. There is a missing udev_settle() call.
epatch "${FILESDIR}/${PN}-commit-to-disk-settle.patch"
distutils_src_prepare
}