diff options
author | Christopher Larson <chris_larson@mentor.com> | 2018-06-22 02:08:06 +0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-27 13:55:21 +0100 |
commit | 7cb64b9fe1dcf5e157983a929b102b41fa4f872d (patch) | |
tree | 0bd70af43d75a8370c8a2c19ff7ce1adc2466666 /meta/recipes-support/rng-tools | |
parent | a060ff2871bf01b99efd4b3f589712fc68a6cfaf (diff) | |
download | poky-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/rng-tools')
-rw-r--r-- | meta/recipes-support/rng-tools/rng-tools/rngd.service | 3 | ||||
-rw-r--r-- | meta/recipes-support/rng-tools/rng-tools_5.bb | 2 |
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] |
2 | Description=Hardware RNG Entropy Gatherer Daemon | 2 | Description=Hardware RNG Entropy Gatherer Daemon |
3 | DefaultDependencies=no | ||
4 | After=systemd-udev-settle.service | ||
5 | Before=sysinit.target | ||
3 | 6 | ||
4 | [Service] | 7 | [Service] |
5 | ExecStart=@SBINDIR@/rngd -f -r /dev/urandom | 8 | ExecStart=@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 | ||
45 | INITSCRIPT_NAME = "rng-tools" | 45 | INITSCRIPT_NAME = "rng-tools" |
46 | INITSCRIPT_PARAMS = "start 30 2 3 4 5 . stop 30 0 6 1 ." | 46 | INITSCRIPT_PARAMS = "start 03 2 3 4 5 . stop 30 0 6 1 ." |
47 | 47 | ||
48 | SYSTEMD_SERVICE_${PN} = "rngd.service" | 48 | SYSTEMD_SERVICE_${PN} = "rngd.service" |