diskimage-builder/elements/cloud-init-nocloud/install.d/05-inject-local-source-data
Robert Collins 03b437db0e Fix cloud-init-nocloud to actually work.
Bug 1124593 reported that ssh host keys were not being created, and the
lack of seed metadata files was the cause. Add those files and remove
the workaround.

Change-Id: I6fb55be7f8c7efd1f75aeba9123f495e312ff695
2013-06-12 13:28:27 +12:00

8 lines
243 B
Bash
Executable file

#!/bin/bash
# without these files, cloud-init will not perform stock operations such as
# generating sshd hostkeys.
mkdir -p /var/lib/cloud/seed/nocloud
touch /var/lib/cloud/seed/nocloud/user-data
touch /var/lib/cloud/seed/nocloud/meta-data