Handle non-cloud-init installs

Not all operating-system elements install cloud-init, but the base
element assumes its existence. Create the directory if it does not
exist.

Change-Id: I4bda8dc5d200825ea0c8163a4e5c44050a45083f
This commit is contained in:
Monty Taylor 2015-03-23 16:14:07 -04:00
parent 100959de8d
commit 05356cbc09

View File

@ -7,6 +7,8 @@ fi
set -eu set -eu
set -o pipefail set -o pipefail
# cloud-init May not actually be installed
mkdir -p /etc/cloud/cloud.cfg.d
dd of=/etc/cloud/cloud.cfg.d/10_etc_hosts.cfg << EOF dd of=/etc/cloud/cloud.cfg.d/10_etc_hosts.cfg << EOF
manage_etc_hosts: localhost manage_etc_hosts: localhost
EOF EOF