2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-01 00:57:37 +00:00

Fix 3026, ignore the rsetboot for openbmc box in petitboot during the stateful installation (#4193)

This commit is contained in:
Bin Xu
2017-10-27 17:10:47 +08:00
committed by yangsong
parent 21ea7f1160
commit 9abe96809b
2 changed files with 5 additions and 0 deletions

View File

@@ -397,6 +397,9 @@ my $flag_debug = "[openbmc_debug]";
#-------------------------------------------------------
sub preprocess_request {
my $request = shift;
if (defined $request->{_xcat_ignore_flag}->[0] and $request->{_xcat_ignore_flag}->[0] eq 'openbmc') {
return [];#workaround the bug 3026, to ignore it for openbmc
}
if (defined $request->{_xcatpreprocessed}->[0] and $request->{_xcatpreprocessed}->[0] == 1) {
return [$request];
}

View File

@@ -561,6 +561,8 @@ sub process_request {
$sub_req->({ command => ['rsetboot'],
node => \@nodes,
arg => ['default'],
#workaround the bug 3026, to ignore it for openbmc
_xcat_ignore_flag => ['openbmc'],
#todo: do not need to pass the XCAT_OPENBMC_DEVEL after the openbmc dev work finish
#this does not hurt anything for other plugins
environment => {XCAT_OPENBMC_DEVEL=>"YES"}