summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBedel, Alban <alban.bedel@aerq.com>2019-07-23 14:11:46 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-26 08:41:38 +0100
commit3ac4332d2565c04e9be936d2397453f7041003b1 (patch)
treef53ddf5bc9a893e36530d57b3367cfaf603563e8
parentd3ed42ef277c0d82928fa7ea95597e46e22a93c2 (diff)
downloadpoky-3ac4332d2565c04e9be936d2397453f7041003b1.tar.gz
rng-tools: start rngd early in the boot process again
It do make sense to start rngd early in the boot process because otherwise we would need to track every service that might need entropy and explicitly configure it to start after rngd. When used with systemd rngd blocked the shutdown process because it simply missed the proper unit configuration. As the systemd documentation explains, when using DefaultDependencies=no one also have to explicitly configure the unit to properly stop at some point. This is normaly achieved by having Before=shutdown.target and Conflicts=shutdown.target set for the unit. To have rngd started early again we reverte the changes done to rngd.service in commit edf7606822 (rng-tools: fix rngd blocks system shutdown). To have it properly stopped on shutdown we also add Before=shutdown.target and Conflicts=shutdown.target. (From OE-Core rev: a74e7df33e2c8ab2152e3217c0a5df3f65971713) Signed-off-by: Alban Bedel <alban.bedel@aerq.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/rng-tools/rng-tools/rngd.service4
1 files changed, 4 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 49d5de294f..aaaaa29074 100644
--- a/meta/recipes-support/rng-tools/rng-tools/rngd.service
+++ b/meta/recipes-support/rng-tools/rng-tools/rngd.service
@@ -1,5 +1,9 @@
1[Unit] 1[Unit]
2Description=Hardware RNG Entropy Gatherer Daemon 2Description=Hardware RNG Entropy Gatherer Daemon
3DefaultDependencies=no
4After=systemd-udev-settle.service
5Before=sysinit.target shutdown.target
6Conflicts=shutdown.target
3 7
4[Service] 8[Service]
5EnvironmentFile=-@SYSCONFDIR@/default/rng-tools 9EnvironmentFile=-@SYSCONFDIR@/default/rng-tools