diskimage-builder/elements/runtime-ssh-host-keys/init-scripts/systemd/ssh-keygen.service
Paul Belanger 18a664dd32 Don't use ssh-keygen -A for init scripts
We are running into race conditions with glean, which ssh-keygen -A is
not handling properly.  So, create a new script to first check if the
file exists, then use 'yes' to disable overwriting of existing files.

Change-Id: Ie82e1e3f832fcc8f32c7e1335c5f0ee16d36f9a8
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-10-18 14:25:28 -04:00

12 lines
201 B
Desktop File

[Unit]
Description=OpenSSH Server Key Generation
Before=ssh.service
[Service]
ExecStart=/usr/local/sbin/runtime-ssh-host-keys.sh
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target