From 0dcf2e1e9c06c10f30addba1ca6606fe99133e00 Mon Sep 17 00:00:00 2001 From: jjhua Date: Fri, 12 Oct 2012 06:45:21 +0000 Subject: [PATCH] To support site.precreatemypostscripts=1 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13991 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/updatenode.pm | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index 534da5154..3246d6996 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -926,17 +926,14 @@ sub updatenode xCAT::MsgUtils->message("E", $rsp, $callback); } - #$cmd="cd $postscripts;tar -czf $postscripts.tgz ."; #print "cmd:$cmd\n"; - #xCAT::Utils->runcmd($cmd, 0); - #$rsp = {}; - #if ($::RUNCMD_RC != 0) - #{ - # $rsp->{data}->[0] = "$cmd failed.\n"; - # xCAT::MsgUtils->message("E", $rsp, $callback); - #} } + #if precreatemypostscripts=1, create each mypostscript for each node + require xCAT::Postage; + xCAT::Postage::create_mypostscript_or_not($request, $callback, $subreq); + + # convert the hashes back to the way they were passed in my $flatreq = xCAT::InstUtils->restore_request($request, $callback); my $imgdefs;