diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-08-22 18:47:05 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-25 11:08:06 +0100 |
commit | 0a095d4afb19d5186fc2685990ff1a511d5c49bf (patch) | |
tree | 7d923a1b19af5883f545f1d96754ef6c5e43d5d1 /meta/recipes-support | |
parent | e0c378d692bd4d08301b30949a71fd867de27a23 (diff) | |
download | poky-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.service | 6 |
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] |
2 | Description=Hardware RNG Entropy Gatherer Daemon | 2 | Description=Hardware RNG Entropy Gatherer Daemon |
3 | DefaultDependencies=no | 3 | DefaultDependencies=no |
4 | After=systemd-udev-settle.service | ||
5 | Before=sysinit.target shutdown.target | ||
6 | Requires=dev-hwrng.device | ||
7 | After=dev-hwrng.device | ||
8 | Conflicts=shutdown.target | 4 | Conflicts=shutdown.target |
5 | Before=sysinit.target shutdown.target | ||
6 | ConditionVirtualization=!container | ||
9 | 7 | ||
10 | [Service] | 8 | [Service] |
11 | EnvironmentFile=-@SYSCONFDIR@/default/rng-tools | 9 | EnvironmentFile=-@SYSCONFDIR@/default/rng-tools |