diff --git a/definitions/Debian-jessie-amd64-netboot/cleanup.sh b/definitions/Debian-jessie-amd64-netboot/cleanup.sh index f6953e1..d24e50e 100644 --- a/definitions/Debian-jessie-amd64-netboot/cleanup.sh +++ b/definitions/Debian-jessie-amd64-netboot/cleanup.sh @@ -1,5 +1,5 @@ # Clean up -apt-get -y remove linux-headers-$(uname -r) build-essential +#apt-get -y remove linux-headers-$(uname -r) build-essential apt-get -y autoremove apt-get -y clean @@ -9,8 +9,7 @@ rm /var/lib/dhcp/* # Make sure Udev doesn't block our network echo "cleaning up udev rules" -rm /etc/udev/rules.d/70-persistent-net.rules -mkdir /etc/udev/rules.d/70-persistent-net.rules +echo -n > /etc/udev/rules.d/70-persistent-net.rules rm -rf /dev/.udev/ rm /lib/udev/rules.d/75-persistent-net-generator.rules