On 07/08/2016 01:01 AM, Ruediger Meier wrote: > It's about this openSUSE init script pull request > https://build.opensuse.org/request/show/405725 > > He removed the existing "sleep 2" after modprobe but I guess somebody > had added that sleep for a good reason in past. Of course sleep is > ugly, maybe "udevadm settle" would work too!? I simply don't know if > udev or sleep would have any affect here at all. When testing locally > the thing always works without any sleep. But this may not mean > anything (as I've learned from ul test suite issues). maybe use timeout(1) instead of waiting the full 2 seconds? timeout 2 sh -c 'while [ ! -e /dev/raw/$rawdev ]; do sleep .1; done' Still pretty ugly, but performs better. ;-) Have a nice day, Berny -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html