Vasyl Saienko | 9740a4f | 2023-09-22 14:48:29 +0000 | [diff] [blame] | 1 | set -ex |
| 2 | |
dbiletskiy | 4039e55 | 2024-06-27 09:02:21 +0200 | [diff] [blame] | 3 | # Disable unattended upgrades |
| 4 | sed -i 's/APT::Periodic::Unattended-Upgrade "1"/APT::Periodic::Unattended-Upgrade "0"/' /etc/apt/apt.conf.d/20auto-upgrades |
| 5 | sed -i 's/APT::Periodic::Update-Package-Lists "1"/APT::Periodic::Update-Package-Lists "0"/g' /etc/apt/apt.conf.d/* |
| 6 | |
Vasyl Saienko | 9740a4f | 2023-09-22 14:48:29 +0000 | [diff] [blame] | 7 | apt update |
| 8 | |
| 9 | DEBIAN_FRONTEND=noninteractive apt install -y \ |
| 10 | linux-headers-${KERNEL_VERSION} \ |
| 11 | linux-image-${KERNEL_VERSION} |
| 12 | |
| 13 | echo "Kernel is installed." |