[Nix-dev] [Nix-commits] [NixOS/nixos] cd5134: Add rngd service.

Eelco Dolstra eelco.dolstra at logicblox.com
Thu Nov 22 16:52:58 CET 2012


Hi,

On 22/11/12 16:19, Shea Levy wrote:

> Argh, thanks. rngd has three possible sources of randomness, and two of 
> them of devices (the third is a special x86 instruction). Ideally it 
> would listen to uevents if those devices don't exist when it starts, 
> I've disabled it by default while I investigate how hard that patch will be.

What may be useful is to make the service conditional, like:

  unitConfig.ConditionPathExists = "/dev/tpm0";

or something like that.  Although that may create race conditions with udev...

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list