blob: 8a572680e167ce647c8ac27b3cf3834c2ed13dee [file] [log] [blame]
Filip Pytloun896f37b2015-06-25 18:35:42 +02001apt-get -y autoremove --purge
jan kaufmana519d7b2015-03-04 00:51:47 +01002apt-get -y clean
3
Filip Pytlouna359bae2016-01-28 17:38:51 +01004echo "cleaning up hostname"
5sed -i "/.*ubuntu-1404.*/d" /etc/hosts
6
jan kaufmana519d7b2015-03-04 00:51:47 +01007echo "cleaning up guest additions"
Filip Pytloun4b66ee52015-08-19 15:16:27 +02008rm -rf VBoxGuestAdditions_*.iso VBoxGuestAdditions_*.iso.? || true
jan kaufmana519d7b2015-03-04 00:51:47 +01009
10echo "cleaning up dhcp leases"
Filip Pytloun4b66ee52015-08-19 15:16:27 +020011rm /var/lib/dhcp/* || true
jan kaufmana519d7b2015-03-04 00:51:47 +010012
13echo "cleaning up udev rules"
Filip Pytloun4b66ee52015-08-19 15:16:27 +020014rm -f /etc/udev/rules.d/70-persistent-net.rules || true
15rm -rf /dev/.udev/ || true
16rm -f /lib/udev/rules.d/75-persistent-net-generator.rules || true
17
jan kaufman4d857a12015-08-13 18:45:03 +020018echo "cleaning up minion_id for salt"
Filip Pytloun4b66ee52015-08-19 15:16:27 +020019rm -f /etc/salt/minion_id || true
jan kaufman4d857a12015-08-13 18:45:03 +020020