]> code.ossystems Code Review - openembedded-core.git/commitdiff
rng-tools: start earlier in the boot process
authorChristopher Larson <chris_larson@mentor.com>
Thu, 21 Jun 2018 21:08:06 +0000 (02:08 +0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 27 Jun 2018 12:53:28 +0000 (13:53 +0100)
Entropy is needed earlier in the boot process in some cases, for example
connman can require it, and rgd doesn't require much, so move it earlier
in the boot process, 03 for sysvinit, and before sysinit for systemd.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/rng-tools/rng-tools/rngd.service
meta/recipes-support/rng-tools/rng-tools_5.bb

index b94ad50209cb1ea9118e29ec0782d6c4ec05260c..cb8102442d64705182fd095269a103f50e2966c0 100644 (file)
@@ -1,5 +1,8 @@
 [Unit]
 Description=Hardware RNG Entropy Gatherer Daemon
+DefaultDependencies=no
+After=systemd-udev-settle.service
+Before=sysinit.target
 
 [Service]
 ExecStart=@SBINDIR@/rngd -f -r /dev/urandom
index 24d545dc3faa27d01e2090868db53655ce7ea1e5..6765667a59b47b2d89d8d775af5d9a3e15c14087 100644 (file)
@@ -43,6 +43,6 @@ do_install_append() {
 }
 
 INITSCRIPT_NAME = "rng-tools"
-INITSCRIPT_PARAMS = "start 30 2 3 4 5 . stop 30 0 6 1 ."
+INITSCRIPT_PARAMS = "start 03 2 3 4 5 . stop 30 0 6 1 ."
 
 SYSTEMD_SERVICE_${PN} = "rngd.service"