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

Shea Levy shea at shealevy.com
Thu Nov 22 16:55:44 CET 2012


On 11/22/2012 10:52 AM, Eelco Dolstra wrote:
> 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...
>

Yeah, something like that might help, but the situation is complicated 
by there being three acceptable sources, only two of which are 
represented by filesystem resources... I'm sending an email to 
systemd-devel asking for advice.


More information about the nix-dev mailing list