Ensure haveged is running before ssh service is invoked
authorMichael Prokop <mika@grml.org>
Thu, 13 Dec 2018 13:58:00 +0000 (14:58 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 13 Dec 2018 14:01:47 +0000 (15:01 +0100)
commitc779fd0653515abaf09d2ee73a1db6fa88218832
treef342f0e9f8bd040d36f43da97357167d37622110
parent7da150b556f417653cb61a19fff11436a90849fa
Ensure haveged is running before ssh service is invoked

The random number generator might take quite some while until we reach
state `random: crng init done`. If ssh service is started *before* crng
is done then ssh service startup blocks system boot until enough entropy
is available.

By starting haveged (Linux entropy source using the HAVEGE algorithm)
before ssh service we avoid this.

Since haveged is in our GRMLBASE software selection we can assume that
it's present by default.

FTR, it might be useful to start haveged all the time, but before
going that route let's try whether having it for SSH service is enough.
autoconfig.functions