Skip to content

main/rng-tools: start rngd after procfs

Dominique Martinet requested to merge martinetd/aports:rngd_dep into master

rngd reads /proc/sys/kernel/random/poolsize at startup and falls back to 4K if the file was not present.

If /proc is not mounted yet by the time rngd starts, and the real pool size is smaller (which is likely on low end devices with low memory), then rngd will keep trying to feed entropy to linux in a tight loop and consume CPU for no benefit.


noticed that on our arm board when playing with s6, but the dependency is required for openrc as well.
(Also, people using alpine's initrd will have /proc already mounted by initrd and won't have the problem. After won't require the service if it's not already enabled, so it shouldn't create any extra work either)

Merge request reports

Loading