From 226773e8e4b1b7e0141c45e0040fa2cd4141282a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 29 Aug 2024 19:30:23 +0100 Subject: [PATCH] Use backports for smartmontools on debian --- cookbooks/hardware/recipes/default.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 2fbf30141..5492134dc 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -465,6 +465,12 @@ end disks = disks.compact.uniq if disks.count.positive? + apt_preference "smartmontools" do + pin "release o=Debian Backports" + pin_priority "600" + only_if { platform?("debian") } + end + package "smartmontools" template "/etc/cron.daily/update-smart-drivedb" do -- 2.39.5