Skip to content

Commit

Permalink
Fixes #37742 disable obsoletes for subman upgrade
Browse files Browse the repository at this point in the history
* rhn-client-tools obsoletes subscription manager, installation of
  subman rpm has the flag --setopt=obsoletes=0 set correctly to mitigate
this, but the subsequent upgrade of subscription-manager rpm does not
* add the --setopt=exclude=rhn-client-tools flag so rhn-client-tools does not
  get installed instead of upgrade of the subman

Signed-off-by: Daniel Diblik <[email protected]>
  • Loading branch information
danmyway committed Aug 20, 2024
1 parent 44160c0 commit 1b62463
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ if ! [ -x "$(command -v subscription-manager)" ] ; then
else
echo "subscription-manager is already installed!"
<% if @subman_setup_scenario == 'registration' -%>
$PKG_MANAGER_UPGRADE subscription-manager > /dev/null 2>&1
$PKG_MANAGER_UPGRADE --setopt=exclude=rhn-client-tools subscription-manager > /dev/null 2>&1
<% end %>
fi

Expand Down

0 comments on commit 1b62463

Please sign in to comment.