2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-12 13:18:48 +00:00

Disable other repos when doing otherpkgs

otherpkgs had a side effect of applying updates not in
otherpkgs.  Alter this behavior.
This commit is contained in:
Jarrod Johnson
2020-02-06 13:52:40 -05:00
parent c09ebbd4dc
commit 4e9a52f8c2

View File

@@ -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