Generate ssh hostkeys on first-boot.

cloud-init is expected to generate unique hostkeys on first
boot, but sometimes it doesn't.

This change ensures that hostkeys are always generated.
This change should be removed if the cloud-init problem is solved.

Change-Id: I7d7e05fbd12727992cf1aebec547ae0488e002ff
This commit is contained in:
Tim Miller 2013-04-08 18:57:00 -07:00
parent 24c89932be
commit 21e3fb185c

View File

@ -0,0 +1,4 @@
#!/bin/bash
# NOTE: this file should be removed once cloud-init is properly generating hostkeys
# https://bugs.launchpad.net/diskimage-builder/+bug/1124593
dpkg-reconfigure openssh-server