Re: [systemd-devel] Switch root slowness

2014-10-31 Thread Jan Synacek
Lennart Poettering 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 fallback to /dev/ur

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 > > Date: Wed Oct 29 17:06:32 2014 +0100 > > > >

Re: [systemd-devel] Switch root slowness

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

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 an

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 > Date: Wed Oct 29 17:06:32 2014 +0100 > > util: make use of the new getrandom() syscall if it is available when > needing entropy >

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 > Date: Wed Oct 29 17:06:32 2014 +0100 > > util: make use of the new getrandom() syscall if it is available when > needing entropy > >

[systemd-devel] Switch root slowness

2014-10-30 Thread Jan Synáček
Hello, commit 539618a0ddc2dc7f0fbe28de2ae0e07b34c81e60 Author: Lennart Poettering 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 let's make use of it,