remove purge left over from ubuntu installer, let dist-upgrade include grub if needed

This commit is contained in:
Matthew Saunders Brown 2024-11-24 15:09:37 -08:00
parent 6f74e350e2
commit 239dd082f3

View File

@ -39,14 +39,8 @@ fi
# update system
DEBIAN_FRONTEND=noninteractive apt-get -y update
# update grub first, by itself, as it requires special overrides to run unattended
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install grub-common grub2-common
DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade
# remove unwanted packages
DEBIAN_FRONTEND=noninteractive apt-get -y purge snapd cryptsetup ufw iptables popularity-contest
DEBIAN_FRONTEND=noninteractive apt-get -y autoremove
systemctl daemon-reload
# special dpkg options needed for things like nointeractive grub updates
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade
# configure unattended upgrades with automatic reboots
DEBIAN_FRONTEND=noninteractive apt-get -y install unattended-upgrades apt-listchanges