Call udev_settle after committing changes to a disk (#491529)
On Tue, 2009-03-24 at 21:06 +0100, Hans de Goede wrote:
> ---
> storage/devices.py | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
Looks good. I'm going to push this so it gets into tonight's build.
Dave
>
> diff --git a/storage/devices.py b/storage/devices.py
> index 064ebc1..36043ce 100644
> --- a/storage/devices.py
> +++ b/storage/devices.py
> @@ -795,6 +795,9 @@ class DiskDevice(StorageDevice):
> if keepTrying:
> raise DeviceError("cannot commit to disk %s after %d attempts" % (self.name, maxTries,))
>
> + # commit makes the kernel re-scan the partition table
> + udev_settle()
> +
> def destroy(self):
> """ Destroy the device. """
> log_method_call(self, self.name, status=self.status)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|