put yum upgrade back to fix defect 3215, however, this will break Mellanox drivers because Melanox repaces some of the os rpms with its own.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14577 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2012-12-06 19:35:40 +00:00
parent 1735e36913
commit 5717142c87

View File

@ -479,13 +479,12 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do
#now update all the existing rpms
if [ $hasyum -eq 1 ]; then
#echo "yum -y upgrade"
#result=`yum -y upgrade 2>&1`
#logger -p local4.info -t xcat "$result"
#if [ $? -ne 0 ]; then
echo "yum -y upgrade"
result=`yum -y upgrade 2>&1`
logger -p local4.info -t xcat "$result"
if [ $? -ne 0 ]; then
#logger -p local4.info -t xcat "otherpkgs: $result"
#fi
#echo "$result"
fi
echo "result"
elif [ $haszypper -eq 1 ]; then
echo "zypper --non-interactive update --auto-agree-with-license"