eudev: improve S10udev script for startup
PATCH 1/1 eudev: improve S10udev script for startup
From: Paul Cercueil <[email protected]>
This commit adjusts the S10udev script by:
* Using the --action=add option to udevadm trigger. By default, only the "change" events are handled by 'udevadm trigger', which means it doesn't handle all the "device add" events that occured during the boot time, before eudev was started.
* Adds a call to 'udevadm settle' to make sure we wait for udev to handle all the events that occured before eudev was started.
Both of these change match what the Ubuntu and Debian udev startup scripts are doing.
--- package/eudev/S10udev | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
package/eudev/S10udev +2 -1
@@ -30,7 +30,8 @@ case "$1" in printf "Populating ${udev_root:-/dev} using udev: " printf '\000\000\000\000' > /proc/sys/kernel/hotplug $UDEV_BIN -d || (echo "FAIL" && exit 1) - udevadm trigger + udevadm trigger --action=add + udevadm settle echo "done" ;; stop)
Signature · 1 line
2.0.0
PATCH 1/1 eudev: improve S10udev script for startup
Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
From: Paul Cercueil <[email protected]>
This commit adjusts the S10udev script by:* Using the --action=add option to udevadm trigger. By default, only the "change" events are handled by 'udevadm trigger', which means it doesn't handle all the "device add" events that occured during the boot time, before eudev was started.
* Adds a call to 'udevadm settle' to make sure we wait for udev to handle all the events that occured before eudev was started.
Quoted 6 lines
Both of these change match what the Ubuntu and Debian udev startup scripts are doing.
Signed-off-by Paul Cercueil <[email protected]>Signed-off-by Thomas Petazzoni <[email protected]>Tested-by Thomas Petazzoni <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard