blob: 01dd60541062cb1c39cc3e349309e7d48d99818b [file] [log] [blame]
Richard Felkld59c5652018-02-08 13:14:05 +01001#!/bin/bash -xe
2apt-get -y autoremove --purge
3apt-get -y clean
4rm -rf /var/lib/apt/lists/*
5
6rm -f /usr/sbin/policy-rc.d || true
7
8echo "cleaning up hostname"
9sed -i "/.*ubuntu-1604.*/d" /etc/hosts
10
11echo "cleaning up guest additions"
12rm -rf VBoxGuestAdditions_*.iso VBoxGuestAdditions_*.iso.? || true
13
14echo "cleaning up dhcp leases"
15rm -rf /var/lib/dhcp/* || true
16
17echo "cleaning up udev rules"
18rm -f /etc/udev/rules.d/70-persistent-net.rules || true
19rm -rf /dev/.udev/ || true
20rm -f /lib/udev/rules.d/75-persistent-net-generator.rules || true
21
22echo "cleaning up minion_id for salt"
23rm -f /etc/salt/minion_id || true
24