[dev-python/python-blivet] add udevadm settle patch for commitToDisk
This commit is contained in:
@@ -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)
|
||||
+3
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user