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:
@@ -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];
|
||||
}
|
||||
|
@@ -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"}
|
||||
|
Reference in New Issue
Block a user