Filip Pytloun | a20f9e2 | 2016-02-16 13:07:03 +0100 | [diff] [blame^] | 1 | echo "cleaning up packages" |
| 2 | yum -y clean all |
| 3 | |
| 4 | echo "cleaning up hostname" |
| 5 | sed -i "/.*debian-8.*/d" /etc/hosts |
| 6 | |
| 7 | echo "cleaning up guest additions" |
| 8 | rm -rf VBoxGuestAdditions_*.iso VBoxGuestAdditions_*.iso.? || true |
| 9 | |
| 10 | echo "cleaning up dhcp leases" |
| 11 | rm -f /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 |