add kernel update to firstboot

This commit is contained in:
Thomas Cole 2021-07-29 13:40:29 -04:00
parent 9f9fb9bda7
commit 83e22bc66e

View File

@ -44,10 +44,6 @@ doasuser 'gsettings set org.gnome.desktop.wm.preferences button-layout "appbar:m
echo "Cleaning up." echo "Cleaning up."
rm chrome.deb zoom.deb gnome-shell-extension-installer rm chrome.deb zoom.deb gnome-shell-extension-installer
echo "Running update."
apt update
apt upgrade -y
echo "Adding user for ansible" echo "Adding user for ansible"
#add user for ansible remote updates #add user for ansible remote updates
@ -63,5 +59,12 @@ read NEWHOSTNAME
echo $NEWHOSTNAME > /etc/hostname echo $NEWHOSTNAME > /etc/hostname
sed -i "s/$OLDHOSTNAME/$NEWHOSTNAME/g" /etc/hosts sed -i "s/$OLDHOSTNAME/$NEWHOSTNAME/g" /etc/hosts
#updating to backports kernel
echo "deb http://deb.debian.org/debian buster-backports main" | tee -a /etc/apt/sources.list
echo "Updating to backports kernel."
apt update
apt -t buster-backports upgrade -y
echo "Rebooting..." echo "Rebooting..."
systemctl reboot systemctl reboot