Re: [master] Increment the time we wait for all the block devices to initialize and empty the udev queue (#533047).

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

 



On 12/09/2009 05:33 PM, Ales Kozumplik wrote:

+def udev_settle_incremental():
+    def run_while_output(cmd, argv):
+        out = iutil.execWithCapture(cmd, argv, stderr="/dev/null")
+        while len(out)>  0:
+            out = iutil.execWithCapture(cmd, argv, stderr="/dev/null")
+
+    timeout = 5;
+    argv = ["settle"]
+    argv.append("--timeout=%d" % int(timeout))
+    run_while_output("udevadm", argv);
+

Oh my bad, this function shouldn't go in the patch --- it was just for testing with the user.

_______________________________________________
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