Filip Pytloun | ac2be79 | 2016-01-08 12:09:49 +0100 | [diff] [blame] | 1 | apt-get -y autoremove --purge |
| 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 "/.*debian-8.*/d" /etc/hosts |
| 8 | |
Filip Pytloun | ac2be79 | 2016-01-08 12:09:49 +0100 | [diff] [blame] | 9 | echo "cleaning up guest additions" |
| 10 | rm -rf VBoxGuestAdditions_*.iso VBoxGuestAdditions_*.iso.? || true |
| 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 |
Filip Pytloun | ac2be79 | 2016-01-08 12:09:49 +0100 | [diff] [blame] | 14 | |
| 15 | echo "cleaning up udev rules" |
| 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 | |
| 20 | echo "cleaning up minion_id for salt" |
| 21 | rm -f /etc/salt/minion_id || true |
| 22 | |