babelbox-packer/scripts/cleanup.sh
Jan Dittberner 5b4dd18d7c Fix Buster incompatibilities
- fix locale kernel parameter for installation
- use Buster ISO and checksum and switch to AMD64 architecture
- increase memory of VirtualBox VM to 1 GB to allow graphical installer
- avoid CD questions by pre-seeding apt-setup/cdrom
- uninstall gcc-8 instead of gcc-4.8 in scripts/cleanup.sh
- modify hd-media initrd.gz by adding fdisk udeb content needed by the
  babelbox partition deletion script
2020-03-01 21:49:00 +01:00

13 lines
358 B
Bash
Executable file

# Clean up
apt-get --yes remove dmidecode gcc-8 laptop-detect libc6-dev linux-libc-dev
apt-get --yes autoremove
apt-get --yes clean
# Removing leftover leases and persistent rules
echo "cleaning up dhcp leases"
rm /var/lib/dhcp/*
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
echo "pre-up sleep 2" >> /etc/network/interfaces