From c4c1ad0640ba4be09143e3a0e70ce97146618f4b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 12 Sep 2024 10:54:11 +0100 Subject: [PATCH] Use backports for kernel, firmware and microcode --- cookbooks/apt/recipes/default.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cookbooks/apt/recipes/default.rb b/cookbooks/apt/recipes/default.rb index 1c7f6f504..2699b6a66 100644 --- a/cookbooks/apt/recipes/default.rb +++ b/cookbooks/apt/recipes/default.rb @@ -38,6 +38,8 @@ apt_update "/etc/apt/sources.list" do action :nothing end +dpkg_arch = node[:packages][:systemd][:arch] + if platform?("debian") archive_host = "deb.debian.org" archive_security_host = archive_host @@ -46,8 +48,8 @@ if platform?("debian") archive_suites = %w[main updates backports security] archive_components = %w[main contrib non-free non-free-firmware] backport_packages = case node[:lsb][:codename] - when "bookworm" then %w[exim4 libosmium osm2pgsql otrs2 pyosmium smartmontools systemd] - else %w[] + when "bookworm" then %W[amd64-microcode exim4 firmware-free firmware-nonfree intel-microcode libosmium linux-signed-#{dpkg_arch} osm2pgsql otrs2 pyosmium smartmontools systemd] + else %W[] end elsif intel? archive_host = if node[:country] -- 2.39.5