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