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:
parent
100959de8d
commit
05356cbc09
@ -7,6 +7,8 @@ fi
|
||||
set -eu
|
||||
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
|
||||
manage_etc_hosts: localhost
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user