summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2018-06-22 02:08:06 +0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-06-27 13:55:21 +0100
commit7cb64b9fe1dcf5e157983a929b102b41fa4f872d (patch)
tree0bd70af43d75a8370c8a2c19ff7ce1adc2466666 /meta/recipes-support
parenta060ff2871bf01b99efd4b3f589712fc68a6cfaf (diff)
downloadpoky-7cb64b9fe1dcf5e157983a929b102b41fa4f872d.tar.gz
rng-tools: start earlier in the boot process
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. (From OE-Core rev: 31c9b42aaeef3ad66e05e51b8209e87f2a22f091) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/rng-tools/rng-tools/rngd.service3
-rw-r--r--meta/recipes-support/rng-tools/rng-tools_5.bb2
2 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-support/rng-tools/rng-tools/rngd.service b/meta/recipes-support/rng-tools/rng-tools/rngd.service
index b94ad50209..cb8102442d 100644
--- a/meta/recipes-support/rng-tools/rng-tools/rngd.service
+++ b/meta/recipes-support/rng-tools/rng-tools/rngd.service
@@ -1,5 +1,8 @@
1[Unit] 1[Unit]
2Description=Hardware RNG Entropy Gatherer Daemon 2Description=Hardware RNG Entropy Gatherer Daemon
3DefaultDependencies=no
4After=systemd-udev-settle.service
5Before=sysinit.target
3 6
4[Service] 7[Service]
5ExecStart=@SBINDIR@/rngd -f -r /dev/urandom 8ExecStart=@SBINDIR@/rngd -f -r /dev/urandom
diff --git a/meta/recipes-support/rng-tools/rng-tools_5.bb b/meta/recipes-support/rng-tools/rng-tools_5.bb
index 24d545dc3f..6765667a59 100644
--- a/meta/recipes-support/rng-tools/rng-tools_5.bb
+++ b/meta/recipes-support/rng-tools/rng-tools_5.bb
@@ -43,6 +43,6 @@ do_install_append() {
43} 43}
44 44
45INITSCRIPT_NAME = "rng-tools" 45INITSCRIPT_NAME = "rng-tools"
46INITSCRIPT_PARAMS = "start 30 2 3 4 5 . stop 30 0 6 1 ." 46INITSCRIPT_PARAMS = "start 03 2 3 4 5 . stop 30 0 6 1 ."
47 47
48SYSTEMD_SERVICE_${PN} = "rngd.service" 48SYSTEMD_SERVICE_${PN} = "rngd.service"