blob: 7f2ba4d63213fd714a2700a344169155ee172514 [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
Filip Pytlounaee95a82018-01-05 13:20:57 +01003rm -f /var/lib/apt/lists/*
jan kaufmana519d7b2015-03-04 00:51:47 +01004
Filip Pytlouncb52dd52016-02-01 10:42:54 +01005rm -f /usr/sbin/policy-rc.d || true
6
Filip Pytlouna359bae2016-01-28 17:38:51 +01007echo "cleaning up hostname"
8sed -i "/.*ubuntu-1404.*/d" /etc/hosts
9
jan kaufmana519d7b2015-03-04 00:51:47 +010010echo "cleaning up guest additions"
Filip Pytloun4b66ee52015-08-19 15:16:27 +020011rm -rf VBoxGuestAdditions_*.iso VBoxGuestAdditions_*.iso.? || true
jan kaufmana519d7b2015-03-04 00:51:47 +010012
13echo "cleaning up dhcp leases"
Filip Pytlouncb52dd52016-02-01 10:42:54 +010014rm -f /var/lib/dhcp/* || true
jan kaufmana519d7b2015-03-04 00:51:47 +010015
16echo "cleaning up udev rules"
Filip Pytloun4b66ee52015-08-19 15:16:27 +020017rm -f /etc/udev/rules.d/70-persistent-net.rules || true
18rm -rf /dev/.udev/ || true
19rm -f /lib/udev/rules.d/75-persistent-net-generator.rules || true
20
jan kaufman4d857a12015-08-13 18:45:03 +020021echo "cleaning up minion_id for salt"
Filip Pytloun4b66ee52015-08-19 15:16:27 +020022rm -f /etc/salt/minion_id || true
jan kaufman4d857a12015-08-13 18:45:03 +020023