From 1115edcc77609d7f9e8845d87dbdca03a0b75d09 Mon Sep 17 00:00:00 2001 From: ligc Date: Fri, 29 Jun 2012 07:58:54 +0000 Subject: [PATCH] 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 --- xCAT/postscripts/xcatdsklspost | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/xCAT/postscripts/xcatdsklspost b/xCAT/postscripts/xcatdsklspost index 60292e971..f7f060a39 100755 --- a/xCAT/postscripts/xcatdsklspost +++ b/xCAT/postscripts/xcatdsklspost @@ -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