Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the use of udevadm settle? [closed]

Tags:

linux

udev

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

like image 208
snr Avatar asked Jan 02 '13 18:01

snr


People also ask

What is Udevadm settle?

udevadm settle [options] Watches the udev event queue, and exits if all current events are handled. -t, --timeout=SECONDS Maximum number of seconds to wait for the event queue to become empty. The default value is 120 seconds. A value of 0 will check if the queue is empty and always return immediately.

What is udevd process Linux?

udev (userspace /dev) is a device manager for the Linux kernel. As the successor of devfsd and hotplug, udev primarily manages device nodes in the /dev directory.

What are udev rules?

Udev rules determine how to identify devices and how to assign a name that is persistent through reboots or disk changes. When Udev receives a device event, it matches the configured rules against the device attributes in sysfs to identify the device.

What is systemd udev?

Description. systemd-udevd listens to kernel uevents. For every event, systemd-udevd executes matching instructions specified in udev rules. See udev(7). The behavior of the daemon can be configured using udev.


1 Answers

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.

like image 122
thkala Avatar answered Sep 18 '22 20:09

thkala