summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-08-22 18:47:05 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-25 11:08:06 +0100
commit0a095d4afb19d5186fc2685990ff1a511d5c49bf (patch)
tree7d923a1b19af5883f545f1d96754ef6c5e43d5d1 /meta/recipes-support
parente0c378d692bd4d08301b30949a71fd867de27a23 (diff)
downloadpoky-0a095d4afb19d5186fc2685990ff1a511d5c49bf.tar.gz
rng-tools: Remove depndencies on hwrng
Delete dependency on dev-hwrng.device and systemd-udev-settle services as they can be troublesome because difference devices may have different devices to detect resulting in delayed boot. do not run if included in a container image Add EXTRA_ARGS via /etc/default/rng-tools e.g. if your device has hw RNG then something like this EXTRA_ARGS="-r /dev/hwrng" You can also use drop-ins for enhacing systemd unit file from machine layer via a bbappend and adding a fragment to systemd /etc/systemd/system/rng-tools.service.d/10-hwrng.conf where you can add [Unit] Requires=dev-hwrng.device After=dev-hwrng.device (From OE-Core rev: ab73f6e8efb97682441f012c41d35a549e899cce) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/rng-tools/rng-tools/rng-tools.service6
1 files changed, 2 insertions, 4 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 0f50890dcb..5ae2fba215 100644
--- a/meta/recipes-support/rng-tools/rng-tools/rng-tools.service
+++ b/meta/recipes-support/rng-tools/rng-tools/rng-tools.service
@@ -1,11 +1,9 @@
1[Unit] 1[Unit]
2Description=Hardware RNG Entropy Gatherer Daemon 2Description=Hardware RNG Entropy Gatherer Daemon
3DefaultDependencies=no 3DefaultDependencies=no
4After=systemd-udev-settle.service
5Before=sysinit.target shutdown.target
6Requires=dev-hwrng.device
7After=dev-hwrng.device
8Conflicts=shutdown.target 4Conflicts=shutdown.target
5Before=sysinit.target shutdown.target
6ConditionVirtualization=!container
9 7
10[Service] 8[Service]
11EnvironmentFile=-@SYSCONFDIR@/default/rng-tools 9EnvironmentFile=-@SYSCONFDIR@/default/rng-tools