Skip to content

Commit

Permalink
Merge pull request #459 from zet809/issue_457
Browse files Browse the repository at this point in the history
fix issue 457: xCAT 2.11 / S822LC: Node Discovery failed due to MTM w…
  • Loading branch information
Weihua Hu committed Nov 24, 2015
2 parents f180db9 + b5717ba commit 9885d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xCAT-genesis-scripts/bin/dodiscovery
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ if [ -r /sys/devices/virtual/dmi/id/product_name ]; then #x86

elif [ -r /proc/device-tree/model ]; then #POWER
#MTM=`cat /proc/device-tree/model |awk -F, '{print $2}'`
MTM=`cat /proc/device-tree/model | sed -e 's/\^.*,//'`
MTM=`cat /proc/device-tree/model -vT | sed -e 's/^.*,//' | sed -e 's/^[\t ]*//'| sed -e 's/[\t ]*\^@//'`
CPUCOUNT=`cat /proc/cpuinfo |grep -e "^cpu\s*:"|wc -l`
PLATFORM=`cat /proc/cpuinfo | grep -e "^platform\s*:" | awk '{print \$3}'`
grep -e "^cpu\s*:" /proc/cpuinfo | while read line; do #to avoid pulling in tail, we do a goofy thing
echo $line > /tmp/cpumod
done
CPUTYPE=`cat /tmp/cpumod|awk -F':' '{print $2}'|sed -e 's/^ //'`
SERIAL=`cat /proc/device-tree/system-id`
SERIAL=`cat /proc/device-tree/system-id -vT | sed -e 's/^.*,//' | sed -e 's/^[\t ]*//'| sed -e 's/[\t ]*\^@//'`
UUID=`sed -e 's/\(..\)\(..\)\(..\)\(..\)-\(..\)\(..\)-\(..\)\(..\)/\4\3\2\1-\6\5-\8\7/' /proc/sys/kernel/random/uuid`

fi
Expand Down

0 comments on commit 9885d9a

Please sign in to comment.