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; }