]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
rng-tools: Remove depndencies on hwrng
authorKhem Raj <raj.khem@gmail.com>
Tue, 23 Aug 2022 01:47:05 +0000 (18:47 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Aug 2022 10:07:33 +0000 (11:07 +0100)
commitab73f6e8efb97682441f012c41d35a549e899cce
treed0293a12ccbe9694d999600fcb06fc0c861a038d
parent53c90930fca17cdaec2a5492320a286b6db6bdda
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

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>
meta/recipes-support/rng-tools/rng-tools/rng-tools.service