From c8499d58c14df6359b3694633e070889fa5e6344 Mon Sep 17 00:00:00 2001 From: jjhua Date: Tue, 4 Sep 2012 02:38:11 +0000 Subject: [PATCH] updatenode performance enhancement: remove the code to get the postscripts.tgz, This method is not acceptable. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13708 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcatdsklspost | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/xCAT/postscripts/xcatdsklspost b/xCAT/postscripts/xcatdsklspost index 37b85651d..177c28598 100755 --- a/xCAT/postscripts/xcatdsklspost +++ b/xCAT/postscripts/xcatdsklspost @@ -50,19 +50,19 @@ download_postscripts() rc=1 while [ 0 -eq 0 ]; do - wget -N --waitretry=10 --random-wait -T 60 http://$server$INSTALLDIR/postscripts.tgz -P /xcatpost 2> /tmp/wget.log - rc=$? + #wget -N --waitretry=10 --random-wait -T 60 http://$server$INSTALLDIR/postscripts.tgz -P /xcatpost 2> /tmp/wget.log + #rc=$? - if [ $rc -eq 0 ]; then - return 0; - else + #if [ $rc -eq 0 ]; then + # return 0; + #else wget -l inf -nH -N -r --waitretry=10 --random-wait -T 60 -nH --cut-dirs=2 --reject "index.html*" --no-parent http://$server$INSTALLDIR/postscripts/ -P /xcatpost 2> /tmp/wget.log rc=$? if [ $rc -eq 0 ]; then return 0; fi - fi + #fi retry=$(($retry+1)) if [ $retry -eq $max_retries ]; then @@ -252,9 +252,9 @@ if grep 'rw /rw tmpfs ' /proc/mounts >/dev/null 2>&1; then ln -sf /etc/rc6.d/K10xcatmounts /etc/rc0.d/K10xcatmounts fi -if [ -f /xcatpost/postscripts.tgz ]; then - tar xzf /xcatpost/postscripts.tgz -C /xcatpost/ 2>/dev/null -fi +#if [ -f /xcatpost/postscripts.tgz ]; then +# tar xzf /xcatpost/postscripts.tgz -C /xcatpost/ 2>/dev/null +#fi chmod +x /xcatpost/*;