From b13c713888a4f66f3d317dc4be1ab050e05a849f Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 22 May 2013 12:41:14 +0000 Subject: [PATCH] support long hostnames git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16390 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcatdsklspost | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/xCAT/postscripts/xcatdsklspost b/xCAT/postscripts/xcatdsklspost index 3627a672e..89edb7a47 100755 --- a/xCAT/postscripts/xcatdsklspost +++ b/xCAT/postscripts/xcatdsklspost @@ -398,14 +398,15 @@ else fi max_retries=2 +# try short hostname first if [ -n "$node_short" ]; then download_mypostscript $SIP $node_short $max_retries $TFTPDIR - #disable trying the long node name for now - #if [ $? -ne 0 ]; then - # if [ "$node" != "$node_short" ]; then - # download_mypostscript $SIP $node $postfix $max_retries $TFTPDIR - # fi - #fi + if [ $? -ne 0 ]; then + # try long hostname + if [ "$node" != "$node_short" ]; then + download_mypostscript $SIP $node $postfix $max_retries $TFTPDIR + fi + fi fi