What is the use of udevadm settle? [closed]

https://stackoverflow.com/questions/14127210/what-is-the-use-of-udevadm-settle

Asked 13 years ago Modified 13 years ago Viewed 21k times 17

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow.

Closed 13 years ago.

I have seen the of using udevadm settle command. What is the use of such a command in init scripts?

linuxudev Share Improve this question Follow asked Jan 2, 2013 at 18:29 snr’s user avatar snr 70922 gold badges77 silver badges1010 bronze badges Add a comment 1 Answer Sorted by:

Highest score (default) 28

After the kernel boots, udevd is used to create device nodes for all detected devices. That is a relatively time consuming task that has to be completed for the boot process to continue, otherwise there is a risk of services failing due to missing device nodes.

udevadm settle waits for udevd to process the device creation events for all hardware devices, thus ensuring that any device nodes have been created successfully before proceeding.

Share Improve this answer Follow answered Jan 2, 2013 at 20:01 thkala’s user avatar thkala 86.9k2424 gold badges167167 silver badges205205 bronze badges Sign up to request clarification or add additional context in comments.

1 Comment

Kevin Li Over a year ago Exactly what I was looking for… For the longest time, I’ve been trying to figure out how to cause udevadm trigger to block so that the script doesn’t get ahead and try to proceed before the devices are ready.

Updated: