diff --git a/xCAT-client/bin/rinstall b/xCAT-client/bin/rinstall index 8ae0627f9..fad798fdb 100755 --- a/xCAT-client/bin/rinstall +++ b/xCAT-client/bin/rinstall @@ -77,6 +77,7 @@ sub checkoption{ } +@allnodes=noderange($noderange); if($OSIMAGE){ # -O|--osimage is specified, ignore any -a,-p,-o options, @@ -99,7 +100,7 @@ if($OSIMAGE){ # 3) if nodetype.provmethod is not set, use 'install' as the default value # group the nodes according to the nodetype.provmethod - @allnodes=noderange($noderange); + foreach(@allnodes){ my $tab=xCAT::Table->new("nodetype"); my $nthash=$tab->getNodeAttribs($_,['provmethod']); @@ -186,7 +187,7 @@ if (basename($0) =~ /rinstall/) { # for rinstall, the -c|--console option can provide the remote console for only 1 node if ($CONSOLE) { if(scalar @allnodes ne 1){ - xCAT::MsgUtils->message("rinstall [-c|--console] will only work if there is only one node in the noderange. See winstall(8) for consoles on multiple systems"); + xCAT::MsgUtils->message("E","rinstall [-c|--console] will only work if there is only one node in the noderange. See winstall(8) for consoles on multiple systems"); exit 1; } exec("rcons $noderange");