From 239dd082f3c4d4ec1fb36020327b87688dd54468 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Sun, 24 Nov 2024 15:09:37 -0800 Subject: [PATCH] remove purge left over from ubuntu installer, let dist-upgrade include grub if needed --- install.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/install.sh b/install.sh index 02ead4e..af52601 100644 --- a/install.sh +++ b/install.sh @@ -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