From 5717142c87b2fabcf2f76d0c0591e9d7af5d01f8 Mon Sep 17 00:00:00 2001 From: linggao Date: Thu, 6 Dec 2012 19:35:40 +0000 Subject: [PATCH] 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 --- xCAT/postscripts/otherpkgs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index f55899fa6..7710682c3 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -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"