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:
@@ -182,6 +182,9 @@ datasource_list: [ ConfigDrive, None ]
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# reset cloud-init
|
||||||
|
sudo rm -rf /var/lib/cloud/instances
|
||||||
|
|
||||||
sudo bash -c "echo 'include: /etc/unbound/forwarding.conf' >> /etc/unbound/unbound.conf"
|
sudo bash -c "echo 'include: /etc/unbound/forwarding.conf' >> /etc/unbound/unbound.conf"
|
||||||
if [ -e /etc/init.d/unbound ] ; then
|
if [ -e /etc/init.d/unbound ] ; then
|
||||||
sudo /etc/init.d/unbound restart
|
sudo /etc/init.d/unbound restart
|
||||||
|
Reference in New Issue
Block a user