From 4e9a52f8c28da2a89e22d2fc232e201372f636b2 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 6 Feb 2020 13:52:40 -0500 Subject: [PATCH] Disable other repos when doing otherpkgs otherpkgs had a side effect of applying updates not in otherpkgs. Alter this behavior. --- xCAT/postscripts/otherpkgs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index fb371634b..3f74d7fa2 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -853,9 +853,9 @@ EOF` #now update all the existing rpms if [ $hasyum -eq 1 ]; then if [ $VERBOSE ]; then - echo "$envlist yum -y upgrade" + echo "$envlist yum -y --disablerepo=* --enablerepo=xcat-otherpkgs* upgrade" fi - result=`eval $envlist yum -y upgrade 2>&1` + result=`eval $envlist yum -y --disablerepo=* --enablerepo=xcat-otherpkgs* upgrade 2>&1` R=$? if [ $R -ne 0 ]; then RETURNVAL=$R