Remove cloud-init details

If we have booted with cloud-init, then this status directory is
populated.  Remove it so when we boot snapshot images, they behave as
if on a fresh system.

Change-Id: Idc9ce01290b659e3239d30be847221447a8e5e84
This commit is contained in:
Ian Wienand 2015-06-18 14:04:15 +10:00
parent a9444cdad8
commit 877d93bb84

View File

@ -182,6 +182,9 @@ datasource_list: [ ConfigDrive, None ]
EOF
fi
# reset cloud-init
sudo rm -rf /var/lib/cloud/instances
sudo bash -c "echo 'include: /etc/unbound/forwarding.conf' >> /etc/unbound/unbound.conf"
if [ -e /etc/init.d/unbound ] ; then
sudo /etc/init.d/unbound restart