Patchwork udev: process udev events on startup in init.d script

login
register
mail settings
Submitter Jonathan Liu
Date July 27, 2012, 2:03 p.m.
Message ID <1343397838-2265-1-git-send-email-net147@gmail.com>
Download mbox | patch
Permalink /patch/173677/
State Accepted
Headers show

Comments

Jonathan Liu - July 27, 2012, 2:03 p.m.
udev rules are not processed for kernel events that occur before
the udev daemon is started. Call udevadm trigger to replay these
missed events.

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 package/udev/S10udev | 1 +
 1 file changed, 1 insertion(+)
Thomas Petazzoni - July 30, 2012, 8:20 p.m.
Le Sat, 28 Jul 2012 00:03:58 +1000,
Jonathan Liu <net147@gmail.com> a écrit :

> udev rules are not processed for kernel events that occur before
> the udev daemon is started. Call udevadm trigger to replay these
> missed events.
> 
> Signed-off-by: Jonathan Liu <net147@gmail.com>

Applied, thanks.

Thomas

Patch

diff --git a/package/udev/S10udev b/package/udev/S10udev
index 7bb4309..2c7b7e9 100755
--- a/package/udev/S10udev
+++ b/package/udev/S10udev
@@ -30,6 +30,7 @@  case "$1" in
         echo -n "Populating ${udev_root:-/dev} using udev: "
         echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
         $UDEV_BIN -d || (echo "FAIL" && exit 1)
+        udevadm trigger
         echo "done"
         ;;
     stop)