Fix race condition between ssh and writable mount
Created by: UniversalSuperBox
This adds the /usr/bin/ssh-keygen.sh
script, which waits for
/etc/ssh
to become writable before actually generating the keys.
This is needed by the Nexus 5X as the ssh-keygen job starts before
/etc/ssh
is mounted.
Normally you'd work around this problem by specifying another
condition in the Upstart job, such as start on mounted /etc/ssh
, but
I wasn't able to get this working reliably.