Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 447464

Summary: sys-apps/rng-tools-4-r3 - find_rng_device should be find_device in init.d file
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Toralf Förster gentoo-dev 2012-12-16 14:00:32 UTC
a change between r1 nad r3 is wrong - the string "find_rng_device" should be replaced by "find_device"
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-12-16 14:04:12 UTC
The reporter told us on IRC he experienced the output:

> /etc/init.d/rngd: line 28: find_rng_device: command not found
>  * Starting rngd ...
>  /usr/sbin/rngd: option '--rng-device' requires an argument
>  Try `rngd --help' or `rngd --usage' for more information.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-12-16 14:32:17 UTC
Uhm let me fix this. It worked here because I guess there's nothing to be found anyway (rdrand in use).
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-12-16 14:38:04 UTC
Thanks for reporting, now it should work.

And indeed it worked fine for both TPM and RDRAND cases — which is all I had at hand.
Comment 4 Toralf Förster gentoo-dev 2012-12-16 15:32:12 UTC
(In reply to comment #3)
> Thanks for reporting, now it should work.
> 
> And indeed it worked fine for both TPM and RDRAND cases — which is all I had
> at hand.
FWIW I catched this bug within a running user mode linux image (unstable Gentoo) - at the stable Gentoo host system I just got (w/ DO_NOT_REMIX_URANDOM=1) :


# /etc/init.d/rngd start
 * Caching service dependencies ...                                                             [ ok ]
 * Starting rngd ...
can't open any entropy source
Maybe RNG device modules are not loaded

 * start-stop-daemon: failed to start `/usr/sbin/rngd'
 * Failed to start rngd                                                                         [ !! ]
 * ERROR: rngd failed to start