[PATCH] Call udev_settle after committing changes to a disk (#491529)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 storage/devices.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

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)
-- 
1.6.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux