2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Merge pull request #375 from cxhong/360new

fixed issue #360, updatenode -P ospkgs failed to install cuda
This commit is contained in:
Victor Hu 2015-11-05 10:14:18 -05:00
commit 0559e2992d

View File

@ -921,6 +921,29 @@ else
fi
fi
fi
#install cuda package if any
if [ -n "$cudapkgs" ]; then
cmd="$ENVLIST yum -y install $cudapkgs"
original_arch=$ARCH
unset ARCH
result=`eval $cmd 2>&1`
# re declare the ARCH env after installing cuda command done
ARCH=$original_arch
export ARCH
R=$?
if [ $R -ne 0 ]; then
RETURNVAL=$R
logger -t xcat -p local4.info "ospkgs: $cmd\n $result"
echo "ospkgs: $cmd"
echo $result
else
if [ $debug -ne 0 ]; then
echo "ospkgs: $cmd"
echo $result
fi
fi
fi
#remove some groups if specified
if [ -n "$groups_d" ]; then