Skip to content

Commit

Permalink
Get kernel-devel package for rocky based on installed kernel version
Browse files Browse the repository at this point in the history
  • Loading branch information
hgreebe committed Oct 17, 2024
1 parent 4f18801 commit f2abdaf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
bash "Install kernel source" do
user 'root'
code <<-INSTALL_KERNEL_SOURCE
package="#{kernel_source_package}-#{kernel_source_package_version}"
package="#{kernel_source_package}-$(uname -r)"
# try to install kernel source for a specific release version
dnf install -y ${package} --releasever #{node['platform_version']}
Expand Down

0 comments on commit f2abdaf

Please sign in to comment.