2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-22 22:15:30 +00:00

Merge pull request #2620 from chenglch/nodesetaddcmdline

Fix addkcmdline issue which can not customise the boot params
This commit is contained in:
yangsong
2017-03-10 12:53:02 +08:00
committed by GitHub

View File

@ -114,6 +114,17 @@ sub setdestiny {
my $state = $ARGV[0];
my $reststates;
my $bptab = xCAT::Table->new('bootparams', -create => 1);
my %tempbh = %{ $bptab->getNodesAttribs(\@nodes, [qw(addkcmdline)]) };
while(my ($key, $value) = each(%tempbh)) {
if ($value && $value->[0]->{"addkcmdline"}) {
my $addkcmdline = $value->[0]->{"addkcmdline"};
# $key is node name
$bphash->{$key}->[0]->{"addkcmdline"} = $addkcmdline;
}
}
$bptab->close();
# to support the case that the state could be runimage=xxx,runimage=yyy,osimage=xxx
($state, $reststates) = split(/,/, $state, 2);
my %nstates;