Additional fixes for Ubuntu baseline 56/26256/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Mon, 31 Aug 2015 21:41:12 +0000 (14:41 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Mon, 31 Aug 2015 21:41:12 +0000 (14:41 -0700)
Looks like we need to forcibly destroy any knowledge cloud-init has of a
system having booted once to take care of ssh host keys since Ubuntu
doesn't rebuild them by default.

Change-Id: I698736426aeae79e9caa57061e646ae58a0041c5
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
vagrant/baseline/system_reseal.sh

index 95811fa7899c6370c0042183dfba9a3048856ae7..0b2fb8d44de8e920e0a72e53c8acc8d972e0af6b 100644 (file)
@@ -18,6 +18,9 @@ rm -rf /etc/Pegasus/*.cnf /etc/Pegasus/*.crt /etc/Pegasus/*.csr /etc/Pegasus/*.p
 
 rm -rf ~/.viminfo /etc/ssh/ssh*key*
 
+# kill any cloud-init related bits
+rm -rf /var/lib/cloud/*
+
 echo "********************************************"
 echo "*   PLEASE SNAPSHOT IMAGE AT THIS TIME     *"
 echo "********************************************"