blob: 9034c209be00cde10d90a850d1f056a99ccd92f0 [file] [log] [blame]
Vasyl Saienko9740a4f2023-09-22 14:48:29 +00001set -ex
2
dbiletskiy4039e552024-06-27 09:02:21 +02003# Disable unattended upgrades
4sed -i 's/APT::Periodic::Unattended-Upgrade "1"/APT::Periodic::Unattended-Upgrade "0"/' /etc/apt/apt.conf.d/20auto-upgrades
5sed -i 's/APT::Periodic::Update-Package-Lists "1"/APT::Periodic::Update-Package-Lists "0"/g' /etc/apt/apt.conf.d/*
6
Vasyl Saienko9740a4f2023-09-22 14:48:29 +00007apt update
8
9DEBIAN_FRONTEND=noninteractive apt install -y \
10 linux-headers-${KERNEL_VERSION} \
11 linux-image-${KERNEL_VERSION}
12
13echo "Kernel is installed."