Improving available entropy

Martin Pitt martin.pitt at ubuntu.com
Fri Feb 12 14:42:31 UTC 2016


Hello,

Simon Eisenmann [2016-02-08 13:21 +0100]:
> Yes it would be good to have rngd running from the initrd. Though as it
> is a daemon, does it then need to be restarted when rootfs takes over?

It's recommended to stop/restart after pivoting, yes. Things started
from the initrd link to the libraries (like libc6) in the initrd, thus
you keep duplicate libraries in memory (libc from initrd and libc from
the real OS.

Depending on what the program does it might have more fds open to
files which will go away when pivoting into the real root. This
potentially leads to not being able to unmount/free the initrd.  This
should be okay for a program like rngd which only reads from /sys or
ioctls and writes into /dev, as these are indeed transitioned over
from the initrd. But you need to verify that it indeed does not have
anything else open.

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/snappy-devel/attachments/20160212/0040e7c3/attachment.pgp>


More information about the snappy-devel mailing list