From 389c3cb193f80013af9a0ebcbf35f0d54d300c29 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 22 May 2013 12:42:02 +0000 Subject: [PATCH] support long hostnames git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16391 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