Skip to content

Commit

Permalink
Try installing both 'powertools' and 'PowerTools'
Browse files Browse the repository at this point in the history
Signed-off-by: Rex <[email protected]>
  • Loading branch information
rexcsn committed Dec 7, 2020
1 parent 200afc9 commit e909e43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion recipes/base_install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
# Enable powertools repo so *-devel packages can be installed with DNF
# Enable EPEL repos
execute 'dnf enable powertools and EPEL repos' do
command "dnf config-manager --set-enabled powertools && dnf install -y epel-release"
# PowerTools repository name is case sensitive and different depending on kernel version
# https://bugzilla.redhat.com/show_bug.cgi?id=1900785
# Try installing both "powertools" and "PowerTools" to cover path for all kernel versions
command "(dnf config-manager --set-enabled powertools || dnf config-manager --set-enabled PowerTools) && dnf install -y epel-release"
end
end

Expand Down

0 comments on commit e909e43

Please sign in to comment.