blob: 644b4109a806fd597a9cc19617849a28c1af7e7f [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 Pytlouncb52dd52016-02-01 10:42:54 +01004rm -f /usr/sbin/policy-rc.d || true
5
Filip Pytlouna359bae2016-01-28 17:38:51 +01006echo "cleaning up hostname"
7sed -i "/.*ubuntu-1404.*/d" /etc/hosts
8
jan kaufmana519d7b2015-03-04 00:51:47 +01009echo "cleaning up guest additions"
Filip Pytloun4b66ee52015-08-19 15:16:27 +020010rm -rf VBoxGuestAdditions_*.iso VBoxGuestAdditions_*.iso.? || true
jan kaufmana519d7b2015-03-04 00:51:47 +010011
12echo "cleaning up dhcp leases"
Filip Pytlouncb52dd52016-02-01 10:42:54 +010013rm -f /var/lib/dhcp/* || true
jan kaufmana519d7b2015-03-04 00:51:47 +010014
15echo "cleaning up udev rules"
Filip Pytloun4b66ee52015-08-19 15:16:27 +020016rm -f /etc/udev/rules.d/70-persistent-net.rules || true
17rm -rf /dev/.udev/ || true
18rm -f /lib/udev/rules.d/75-persistent-net-generator.rules || true
19
jan kaufman4d857a12015-08-13 18:45:03 +020020echo "cleaning up minion_id for salt"
Filip Pytloun4b66ee52015-08-19 15:16:27 +020021rm -f /etc/salt/minion_id || true
jan kaufman4d857a12015-08-13 18:45:03 +020022