[PATCH v2] seedrng: limit poolsize to 256 bytes and document flock() and fsync() usage

Michael Conrad mconrad at intellitree.com
Mon May 2 14:34:25 UTC 2022


On 5/2/22 09:54, Bernhard Reutner-Fischer wrote:
>>> There is also the case (that on my systems at least) udev
>>> initialisation reads from /dev/[u]random well before the S20
>>> script loads any saved entropy.
>>> I've not tried to find out what the value is used for.
>> I find at least one occurrence where the goal is to create a
>> random delay in udev-watch.c [1].
> Yes, but that spot does seem to have a fallback.
>
> But why is the seeding being run only at S20, way after udev?

It needs to be at least late enough for the persistent storage to be 
mounted, which probably isn't the root filesystem at boot. udev probably 
needs to run first to find the device nodes for the persistent storage.





More information about the busybox mailing list