Filip Pytloun | 896f37b | 2015-06-25 18:35:42 +0200 | [diff] [blame] | 1 | apt-get -y autoremove --purge |
jan kaufman | a519d7b | 2015-03-04 00:51:47 +0100 | [diff] [blame] | 2 | apt-get -y clean |
| 3 | |
Filip Pytloun | cb52dd5 | 2016-02-01 10:42:54 +0100 | [diff] [blame^] | 4 | rm -f /usr/sbin/policy-rc.d || true |
| 5 | |
Filip Pytloun | a359bae | 2016-01-28 17:38:51 +0100 | [diff] [blame] | 6 | echo "cleaning up hostname" |
| 7 | sed -i "/.*ubuntu-1404.*/d" /etc/hosts |
| 8 | |
jan kaufman | a519d7b | 2015-03-04 00:51:47 +0100 | [diff] [blame] | 9 | echo "cleaning up guest additions" |
Filip Pytloun | 4b66ee5 | 2015-08-19 15:16:27 +0200 | [diff] [blame] | 10 | rm -rf VBoxGuestAdditions_*.iso VBoxGuestAdditions_*.iso.? || true |
jan kaufman | a519d7b | 2015-03-04 00:51:47 +0100 | [diff] [blame] | 11 | |
| 12 | echo "cleaning up dhcp leases" |
Filip Pytloun | cb52dd5 | 2016-02-01 10:42:54 +0100 | [diff] [blame^] | 13 | rm -f /var/lib/dhcp/* || true |
jan kaufman | a519d7b | 2015-03-04 00:51:47 +0100 | [diff] [blame] | 14 | |
| 15 | echo "cleaning up udev rules" |
Filip Pytloun | 4b66ee5 | 2015-08-19 15:16:27 +0200 | [diff] [blame] | 16 | rm -f /etc/udev/rules.d/70-persistent-net.rules || true |
| 17 | rm -rf /dev/.udev/ || true |
| 18 | rm -f /lib/udev/rules.d/75-persistent-net-generator.rules || true |
| 19 | |
jan kaufman | 4d857a1 | 2015-08-13 18:45:03 +0200 | [diff] [blame] | 20 | echo "cleaning up minion_id for salt" |
Filip Pytloun | 4b66ee5 | 2015-08-19 15:16:27 +0200 | [diff] [blame] | 21 | rm -f /etc/salt/minion_id || true |
jan kaufman | 4d857a1 | 2015-08-13 18:45:03 +0200 | [diff] [blame] | 22 | |