eudev: improve S10udev script for startup
authorPaul Cercueil <paul@crapouillou.net>
Sun, 12 Oct 2014 07:22:07 +0000 (09:22 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 12 Oct 2014 07:25:53 +0000 (09:25 +0200)
commitdf8ae412a44ec21d9928e8ba753adee7207d02bc
treef3ac92409741e903903b764378ef33c12d4ee290
parentb55f718cbcd763e7219191300ad358d0cb3e288c
eudev: improve S10udev script for startup

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.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/eudev/S10udev