From 966eaadba01fbbec859e3876bd1ce81bb51211fc Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 2 Dec 2011 17:10:38 +0000 Subject: [PATCH] fix defect 3448413 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11117 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/updatenode.pm | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index a4a986007..a1ac50f21 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -507,8 +507,14 @@ sub preprocess_updatenode $req_rs->{postscripts} = [$ps]; updatenode($req_rs, \&updatenode_cb, $subreq); } + if (scalar(@{$Linuxnodes})) { - $ps = "remoteshell,servicenode,xcatserver,xcatclient"; + my $DBname = xCAT::Utils->get_DBName; + if ($DBname eq "DB2") { + $ps = "remoteshell,servicenode,xcatserver,xcatclient,db2install"; + } else { + $ps = "remoteshell,servicenode,xcatserver,xcatclient"; + } $req_rs->{rerunps}->[0] = "yes"; $req_rs->{rerunps4security}->[0] = "yes"; $req_rs->{node} = $Linuxnodes; @@ -1036,8 +1042,13 @@ $AIXnodes_nd, $subreq ) != 0 ) { if (scalar(@$Linuxnodes)) { + my $DBname = xCAT::Utils->get_DBName; if ($orig_postscripts eq "allkeys44444444security") { - $postscripts = "remoteshell,servicenode,xcatserver,xcatclient"; + if ($DBname eq "DB2") { + $postscripts = "remoteshell,servicenode,xcatserver,xcatclient,db2install"; + } else { + $postscripts = "remoteshell,servicenode,xcatserver,xcatclient"; + } } else { $postscripts = $orig_postscripts; }