fix for bug 3536372: download postscripts from the server specified in kernel parameter XCAT=xxx

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13201 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2012-06-29 07:58:54 +00:00
parent b403f7310c
commit 1115edcc77

View File

@ -168,6 +168,24 @@ else # for common mode
fi
fi
# Try the host in XCAT= kernel parameter
if [ $downloaded -eq 0 ]; then
for i in `cat /proc/cmdline`; do
KEY=`echo $i | awk -F= '{print $1}'`
if [ "$KEY" = "XCAT" ]; then
TMP=`echo $i | awk -F= '{print $2}'`
SIP=`echo $TMP | cut -d: -f1`
if [ -n "$SIP" ]; then
download_postscripts $SIP
if [ $? -eq 0 ]; then
downloaded=1
break
fi
fi
fi
done
fi
#try the dhcp server, this is used for initial boot for the node.
if [ $downloaded -eq 0 ]; then