summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/rng-tools
diff options
context:
space:
mode:
authorClaudius Heine <ch@denx.de>2021-09-17 10:08:04 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-19 11:33:14 +0100
commitc5d1550fe696ce0d131529d4682fd669f8bf25a9 (patch)
treeab6ac63f7fa1e720a6bdd8bdce440f550d1977f5 /meta/recipes-support/rng-tools
parent7bbd93f8dcfd91a26144963d3fe9389db82e9cb1 (diff)
downloadpoky-c5d1550fe696ce0d131529d4682fd669f8bf25a9.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: e9715d4234eb7b45dee8b323799014646f0a1b07) Signed-off-by: Claudius Heine <ch@denx.de> 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.service1
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 0559b97991..568686e80e 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
3DefaultDependencies=no 3DefaultDependencies=no
4After=systemd-udev-settle.service 4After=systemd-udev-settle.service
5Before=sysinit.target shutdown.target 5Before=sysinit.target shutdown.target
6Wants=systemd-udev-settle.service
6Conflicts=shutdown.target 7Conflicts=shutdown.target
7 8
8[Service] 9[Service]