Skip to content

Commit

Permalink
Add kernel version for RHEL 8.8
Browse files Browse the repository at this point in the history
Signed-off-by: Hanwen <[email protected]>
  • Loading branch information
hanwen-cluster authored and hanwen-pcluste committed May 17, 2023
1 parent fae667e commit 66a4740
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ def find_os_minor_version
kernel_patch_version = find_kernel_patch_version

# kernel patch versions under 193 are prior to RHEL 8.2
# kernel patch version number can be retrieved from https://access.redhat.com/articles/3078#RHEL8
os_minor_version = '2' if kernel_patch_version >= '193'
os_minor_version = '3' if kernel_patch_version >= '240'
os_minor_version = '4' if kernel_patch_version >= '305'
os_minor_version = '5' if kernel_patch_version >= '348'
os_minor_version = '6' if kernel_patch_version >= '372'
os_minor_version = '7' if kernel_patch_version >= '425'
os_minor_version = '8' if kernel_patch_version >= '477'

os_minor_version
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def self.setup(chef_run)
end
end

[%w(193 2), %w(240 3), %w(305 4), %w(348 5), %w(372 6), %w(425 7)].each do |kernel_patch, minor_version|
[%w(193 2), %w(240 3), %w(305 4), %w(348 5), %w(372 6), %w(425 7), %w(477 8)].each do |kernel_patch, minor_version|
context "on redhat with kernel from 4.18.0-#{kernel_patch}.3.1.el8 supporting lustre" do
cached(:chef_run) do
runner = ChefSpec::Runner.new(
Expand Down

0 comments on commit 66a4740

Please sign in to comment.