summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew Moseley <drew@moseleynet.net>2022-08-04 11:09:52 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-10 08:33:45 +0100
commit24c198e58ea48b3b61660b3e1fb0ad000bfac40b (patch)
tree60a50e45dd5f2aa46e6c3e87572bebc4b220d2ae
parentd16bdcd4783fa071b1ca32868b8ae9cbc7689336 (diff)
downloadpoky-24c198e58ea48b3b61660b3e1fb0ad000bfac40b.tar.gz
rng-tools: Replace obsolete "wants systemd-udev-settle"
The systemd-udev-settle service is listed as obsolete and does in some cases result in a significant boot time. Replace that with a specific wait for the random source hardware device to be loaded. Before this change: Startup finished in 4.025s (kernel) + 2min 13.236s (userspace) = 2min 17.262s multi-user.target reached after 2min 8.153s in userspace After this change: Startup finished in 3.956s (kernel) + 13.294s (userspace) = 17.250s multi-user.target reached after 9.522s in userspace (From OE-Core rev: d43e283d749ddd8fd6722411d051f0e505054c6f) Signed-off-by: Drew Moseley <drew@moseleynet.net> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/rng-tools/rng-tools/rng-tools.service3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-support/rng-tools/rng-tools/rng-tools.service b/meta/recipes-support/rng-tools/rng-tools/rng-tools.service
index 568686e80e..0f50890dcb 100644
--- a/meta/recipes-support/rng-tools/rng-tools/rng-tools.service
+++ b/meta/recipes-support/rng-tools/rng-tools/rng-tools.service
@@ -3,7 +3,8 @@ 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 6Requires=dev-hwrng.device
7After=dev-hwrng.device
7Conflicts=shutdown.target 8Conflicts=shutdown.target
8 9
9[Service] 10[Service]