mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 11:42:05 +00:00
Merge pull request #375 from cxhong/360new
fixed issue #360, updatenode -P ospkgs failed to install cuda
This commit is contained in:
commit
0559e2992d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user