[blivet][PATCH][f21] Wait for udev to settle before collecting UUID for new filesystems.

Anne Mulhern amulhern at redhat.com
Fri Oct 24 22:48:01 UTC 2014





----- Original Message -----
> From: "David Lehman" <dlehman at redhat.com>
> To: anaconda-patches at lists.fedorahosted.org
> Sent: Friday, October 24, 2014 5:32:49 PM
> Subject: [blivet][PATCH][f21] Wait for udev to settle before collecting UUID	for new filesystems.
> 
> The consequence of the bug is that we end up putting paths into
> /etc/fstab instead of UUIDs. That happens because as far as we can tell
> there is no UUID because, well, udev told us there was no UUID.
> 
> Related: rhbz#1156614
> ---
>  blivet/deviceaction.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/blivet/deviceaction.py b/blivet/deviceaction.py
> index 914e8d1..22b3cd8 100644
> --- a/blivet/deviceaction.py
> +++ b/blivet/deviceaction.py
> @@ -558,6 +558,7 @@ class ActionCreateFormat(DeviceAction):
>  
>          self.device.format.create(device=self.device.path,
>                                    options=self.device.formatArgs)
> +        udev.settle()

In a bright future we should figure out a way of waiting more
cleverly, but for now this looks like the right thing to do,
so ack.

>          # Get the UUID now that the format is created
>          info = udev.get_device(self.device.sysfsPath)
>          # only do this if the format has a device known to udev
> --
> 1.9.3
> 
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
> 

- mulhern



More information about the anaconda-patches mailing list