diff options
author | Claudius Heine <ch@denx.de> | 2021-09-17 10:08:04 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-23 23:14:16 +0100 |
commit | 1501d447cf96ded93f49c9a49cb1b608b9def315 (patch) | |
tree | 4c0d9e2fe09df28835f5e333bab81dd0b1554b8d /meta | |
parent | d1bb485d053a1c84a639b308657a4698623c9886 (diff) | |
download | poky-1501d447cf96ded93f49c9a49cb1b608b9def315.tar.gz |
rng-tools: add systemd-udev-settle wants to service
rngd needs to start after `systemd-udev-settle` in order for the kernel
modules of the random source hardware to be loaded before it is started.
However, since the `rngd.service` does not require or want
`systemd-udev-settle.service` it might not be scheduled for start and
the `After=systemd-udev-settle.service` there has no effect.
Adding `Wants=systemd-udev-settle.service` provides a weak requirement
to it, so that the `rngd` is started after it, if possible.
(From OE-Core rev: 006b5221ed6dac9964f49a03a55de2e847118dc1)
Signed-off-by: Claudius Heine <ch@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e9715d4234eb7b45dee8b323799014646f0a1b07)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-support/rng-tools/rng-tools/rngd.service | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-support/rng-tools/rng-tools/rngd.service b/meta/recipes-support/rng-tools/rng-tools/rngd.service index aaaaa29074..f296a99e1f 100644 --- a/meta/recipes-support/rng-tools/rng-tools/rngd.service +++ b/meta/recipes-support/rng-tools/rng-tools/rngd.service | |||
@@ -3,6 +3,7 @@ Description=Hardware RNG Entropy Gatherer Daemon | |||
3 | DefaultDependencies=no | 3 | DefaultDependencies=no |
4 | After=systemd-udev-settle.service | 4 | After=systemd-udev-settle.service |
5 | Before=sysinit.target shutdown.target | 5 | Before=sysinit.target shutdown.target |
6 | Wants=systemd-udev-settle.service | ||
6 | Conflicts=shutdown.target | 7 | Conflicts=shutdown.target |
7 | 8 | ||
8 | [Service] | 9 | [Service] |