add Prep partition flag setting
This commit is contained in:
parent
ab8e64217f
commit
201fb1871b
@ -618,6 +618,22 @@ sub sysclone_prepclient {
|
||||
},
|
||||
$subreq, 0, 1);
|
||||
|
||||
my @nodes = ($node);
|
||||
my $nodetypetab = xCAT::Table->new("nodetype");
|
||||
my $nthash = $nodetypetab->getNodesAttribs(\@nodes, ['arch']);
|
||||
my $tmp = $nthash->{$node}->[0]->{arch};
|
||||
if ( $tmp eq 'ppc64'){
|
||||
$cmd = qq(if ! cat /etc/systemimager/autoinstallscript.conf |grep 'part num=\\\"1\\\"' |grep 'id=' >/dev/null ;then sed -i 's:\\(.*<part num=\\\"1\\\".*\\)\\(/>\\
|
||||
):\\1 id=\\\"41\\\" \\2:' /etc/systemimager/autoinstallscript.conf;fi);
|
||||
$output = xCAT::Utils->runxcmd(
|
||||
{
|
||||
command => ["xdsh"],
|
||||
node => [$node],
|
||||
arg =>[$cmd]
|
||||
},
|
||||
$subreq, 0, 1);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user