From fac06cba1298b26e779af3d1f221655257ab2d7c Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sat, 3 Mar 2012 00:14:16 +0000 Subject: [PATCH] Fix genduiduuid.sh script to cope with deficient kernel code too git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11733 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/scripts/genduiduuid.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/scripts/genduiduuid.sh b/xCAT-server/share/xcat/scripts/genduiduuid.sh index 3def18f84..8961325d1 100644 --- a/xCAT-server/share/xcat/scripts/genduiduuid.sh +++ b/xCAT-server/share/xcat/scripts/genduiduuid.sh @@ -3,7 +3,7 @@ if [ ! -r /etc/redhat-release ] || ! grep "release 6" /etc/redhat-release >/dev/ fi if [ -r /sys/devices/virtual/dmi/id/product_uuid ]; then duid='default-duid "\000\004'; - for i in `sed -e s/-//g -e 's/\(..\)/\1 /g' /sys/devices/virtual/dmi/id/product_uuid`; do + for i in `dmidecode -s system-uuid | sed -e s/-//g -e 's/\(..\)/\1 /g'`; do num=`printf "%d" 0x$i` octnum=`printf "\\%03o" 0x$i` #Instead of hoping to be inside printable case, just make them all octal codes