Skip to contentSkip to conversation

rng-tools: add systemd-udev-settle wants to service

PATCH New Marek Vasut 1 participant 1 message Oct 12, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rng-tools: add systemd-udev-settle wants to service

From: Claudius Heine <[email protected]>

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.

(cherry picked from commit e9715d4234eb7b45dee8b323799014646f0a1b07)
Cc Steve Sakoman <[email protected]>
---
 meta/recipes-support/rng-tools/rng-tools/rngd.service | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-support/rng-tools/rng-tools/rngd.service +1 -0
index aaaaa29074..f296a99e1f 100644
@@ -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]
Signature · 1 line
2.33.0