sys-apps/rng-tools: do not specify rng device in init script #481254
Linux hw_random driver provides a unified interface for multiple RNGs
and the RNG source is exposed through /dev/hwrng device node. There is
no need for the init script to look for other device nodes under
/dev. By default, rngd uses /dev/hwrng as the entropy source,
therefore it's not required to specify it on the command line
explicitly.
The creation of /dev/hwrng requires CONFIG_DEVTMPFS support in the
kernel. Due to the way hw_random module is written, some device
managers may fail to create /dev/hwrng successfuly. Mdev, for example,
incorrectly creates /dev/hw_random instead of /dev/hwrng, mistaking
module's own name for the device node's name (see related bug
561102). However, per gentoo wiki [1], CONFIG_DEVTMPFS is part of the
mdev setup and these systems will have two device nodes
(/dev/hw_random and /dev/hwrng) that point to the same device. Even in
such setups, rngd will successfuly find /dev/hwrng.
[1] https://wiki.gentoo.org/index.php?title=Mdev&oldid=246636
Gentoo-Bug: https://bugs.gentoo.org/481254
Package-Manager: portage-2.2.20.1