Re: [systemd-devel] Switch root slowness

2014-10-31 Thread Jan Synacek
Lennart Poettering lenn...@poettering.net writes: On Thu, 30.10.14 14:35, Lennart Poettering (lenn...@poettering.net) wrote: I wish there was a way how we could use getrandom() in a way like /dev/urandom, where we can pull out the non-initialized data anyway. In absence of that we can just

[systemd-devel] Switch root slowness

2014-10-30 Thread Jan Synáček
Hello, commit 539618a0ddc2dc7f0fbe28de2ae0e07b34c81e60 Author: Lennart Poettering lenn...@poettering.net Date: Wed Oct 29 17:06:32 2014 +0100 util: make use of the new getrandom() syscall if it is available when needing entropy Doesn't require an fd, and could be a bit faster, so

Re: [systemd-devel] Switch root slowness

2014-10-30 Thread Dave Reisner
On Thu, Oct 30, 2014 at 01:18:24PM +0100, Jan Synáček wrote: Hello, commit 539618a0ddc2dc7f0fbe28de2ae0e07b34c81e60 Author: Lennart Poettering lenn...@poettering.net Date: Wed Oct 29 17:06:32 2014 +0100 util: make use of the new getrandom() syscall if it is available when needing

Re: [systemd-devel] Switch root slowness

2014-10-30 Thread Lennart Poettering
On Thu, 30.10.14 13:18, Jan Synáček (jsyna...@redhat.com) wrote: Hello, commit 539618a0ddc2dc7f0fbe28de2ae0e07b34c81e60 Author: Lennart Poettering lenn...@poettering.net Date: Wed Oct 29 17:06:32 2014 +0100 util: make use of the new getrandom() syscall if it is available when

Re: [systemd-devel] Switch root slowness

2014-10-30 Thread Cristian Rodríguez
El 30/10/14 a las #4, Lennart Poettering escribió: In absence of that we can just fallback to /dev/urandom on EAGAIN I guess, and always pass GRND_NONBLOCK. Before you made this commit, I had a local patch that did exactly that..currently this is the best solution. I suggest to give up on

Re: [systemd-devel] Switch root slowness

2014-10-30 Thread Jan Synacek
Dave Reisner d...@falconindy.com writes: On Thu, Oct 30, 2014 at 01:18:24PM +0100, Jan Synáček wrote: Hello, commit 539618a0ddc2dc7f0fbe28de2ae0e07b34c81e60 Author: Lennart Poettering lenn...@poettering.net Date: Wed Oct 29 17:06:32 2014 +0100 util: make use of the new getrandom()

Re: [systemd-devel] Switch root slowness

2014-10-30 Thread Lennart Poettering
On Thu, 30.10.14 14:35, Lennart Poettering (lenn...@poettering.net) wrote: On Thu, 30.10.14 13:18, Jan Synáček (jsyna...@redhat.com) wrote: Hello, commit 539618a0ddc2dc7f0fbe28de2ae0e07b34c81e60 Author: Lennart Poettering lenn...@poettering.net Date: Wed Oct 29 17:06:32 2014 +0100