diskimage-builder/elements/runtime-ssh-host-keys
Clark Boylan c5ec1348c3 Fix runtime ssh host keys script
The script is set -e and set -o pipefail, unfortauntely this intersects
with `yes n`'s non zero exit code behavior when it receives an interrupt
like sigpipe. As a result stop setting pipefail so that we treat those
errors as "normal" and only fail if ssh-keygen fails.

Change-Id: I5447df97c9888cae3007e235e2fea44df61af28e
2016-11-19 18:02:33 -05:00
..
cleanup.d Create runtime-ssh-host-keys element 2016-09-26 12:32:38 -04:00
init-scripts Don't use ssh-keygen -A for init scripts 2016-10-18 14:25:28 -04:00
post-install.d Create runtime-ssh-host-keys element 2016-09-26 12:32:38 -04:00
static/usr/local/sbin Fix runtime ssh host keys script 2016-11-19 18:02:33 -05:00
element-deps Don't use ssh-keygen -A for init scripts 2016-10-18 14:25:28 -04:00
package-installs.yaml Create runtime-ssh-host-keys element 2016-09-26 12:32:38 -04:00
pkg-map elements: runtime-ssh-host-keys: Add openssh-client mapping for SUSE 2016-10-18 23:26:01 +01:00
README.rst Create runtime-ssh-host-keys element 2016-09-26 12:32:38 -04:00

=====================
runtime-ssh-host-keys
=====================
An element to generate SSH host keys on first boot.

Since ssh key generation is not yet common to all operating systems, we need to
create a DIB element to manage this. We force the removal of the SSH host keys,
then add init scripts to generate them on first boot.

This element currently supports Debian and Ubuntu (both systemd and upstart).