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 | a359bae | 2016-01-28 17:38:51 +0100 | [diff] [blame^] | 4 | echo "cleaning up hostname" |
| 5 | sed -i "/.*debian-8.*/d" /etc/hosts |
| 6 | |
Filip Pytloun | ac2be79 | 2016-01-08 12:09:49 +0100 | [diff] [blame] | 7 | echo "cleaning up guest additions" |
| 8 | rm -rf VBoxGuestAdditions_*.iso VBoxGuestAdditions_*.iso.? || true |
| 9 | |
| 10 | echo "cleaning up dhcp leases" |
| 11 | rm /var/lib/dhcp/* || true |
| 12 | |
| 13 | echo "cleaning up udev rules" |
| 14 | rm -f /etc/udev/rules.d/70-persistent-net.rules || true |
| 15 | rm -rf /dev/.udev/ || true |
| 16 | rm -f /lib/udev/rules.d/75-persistent-net-generator.rules || true |
| 17 | |
| 18 | echo "cleaning up minion_id for salt" |
| 19 | rm -f /etc/salt/minion_id || true |
| 20 | |