[blivet][rhel7-branch][PATCH] Add a udev settle call after instantiating parted.Disk. (#1267858)
Brian C. Lane
bcl at redhat.com
Mon Oct 12 21:17:02 UTC 2015
On Mon, Oct 12, 2015 at 09:51:12AM -0400, David Lehman wrote:
> udev sees parted close a rw fd to the disk (in this case an md fwraid)
> and tries to be helpful by telling the kernel to re-read the partition
> table. That causes the partitions to disappear briefly, which can be
> problematic.
> ---
> blivet/formats/disklabel.py | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/blivet/formats/disklabel.py b/blivet/formats/disklabel.py
> index c69aa04..fbd69cc 100644
> --- a/blivet/formats/disklabel.py
> +++ b/blivet/formats/disklabel.py
> @@ -170,6 +170,7 @@ class DiskLabel(DeviceFormat):
> else:
> log.debug("Did not change pmbr_boot on %s", self._partedDisk)
>
> + udev.settle()
> return self._partedDisk
>
> @property
> --
> 2.4.3
ack.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
More information about the anaconda-patches
mailing list