]> code.ossystems Code Review - openembedded-core.git/commitdiff
rng-tools: add systemd-udev-settle wants to service
authorClaudius Heine <ch@denx.de>
Fri, 17 Sep 2021 08:08:04 +0000 (10:08 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 17 Sep 2021 20:32:51 +0000 (21:32 +0100)
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.

Signed-off-by: Claudius Heine <ch@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/rng-tools/rng-tools/rngd.service

index 0559b97991546405e4e63f7e9b6e299e72bbf805..568686e80e64fe90bb7f75f01c4c2c79a7c08248 100644 (file)
@@ -3,6 +3,7 @@ Description=Hardware RNG Entropy Gatherer Daemon
 DefaultDependencies=no
 After=systemd-udev-settle.service
 Before=sysinit.target shutdown.target
+Wants=systemd-udev-settle.service
 Conflicts=shutdown.target
 
 [Service]