From 9cab12d24270b365e6c22882d607367fd8565012 Mon Sep 17 00:00:00 2001 From: Daniel Diblik Date: Mon, 19 Aug 2024 11:59:52 +0200 Subject: [PATCH] Fixes #37742 - exclude rhn-client-tools for subman upgrade * 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 --- .../snippet/subscription_manager_setup.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/unattended/provisioning_templates/snippet/subscription_manager_setup.erb b/app/views/unattended/provisioning_templates/snippet/subscription_manager_setup.erb index 182f234e714..bee1eb9f40c 100644 --- a/app/views/unattended/provisioning_templates/snippet/subscription_manager_setup.erb +++ b/app/views/unattended/provisioning_templates/snippet/subscription_manager_setup.erb @@ -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