-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hardware: remove haveged as unneeded on kernel 5.15 above
- Loading branch information
Showing
1 changed file
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,11 +28,13 @@ | |
template "ohai.rb.erb" | ||
end | ||
|
||
case node[:cpu][:"0"][:vendor_id] | ||
when "GenuineIntel" | ||
package "intel-microcode" | ||
when "AuthenticAMD" | ||
package "amd64-microcode" | ||
if node[:cpu] && node[:cpu][:"0"] && node[:cpu][:"0"][:vendor_id] | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Firefishy
Author
Member
|
||
case node[:cpu][:"0"][:vendor_id] | ||
when "GenuineIntel" | ||
package "intel-microcode" | ||
when "AuthenticAMD" | ||
package "amd64-microcode" | ||
end | ||
end | ||
|
||
if node[:dmi] && node[:dmi][:system] | ||
|
@@ -204,9 +206,20 @@ | |
notifies :run, "execute[update-initramfs]" | ||
end | ||
|
||
package "haveged" | ||
service "haveged" do | ||
action [:enable, :start] | ||
# haveged is only required on older kernels | ||
# /dev/random is not blocking anymore in 5.15+ | ||
if Chef::Util.compare_versions(node[:kernel][:release], [5, 15]).negative? | ||
package "haveged" | ||
service "haveged" do | ||
action [:enable, :start] | ||
end | ||
else | ||
service "haveged" do | ||
action [:stop, :disable] | ||
end | ||
package "haveged" do | ||
action :remove | ||
end | ||
end | ||
|
||
if node[:kernel][:modules].include?("ipmi_si") | ||
|
What is this supposed to fix?