2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Merge pull request #5416 from bybai/rf

put a delay of 3 seconds to untar the firmware file for rflash -d
This commit is contained in:
Mark Gurevich 2018-07-23 10:33:43 -04:00 committed by GitHub
commit 4d0bde05d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4793,6 +4793,10 @@ sub rflash_upload {
unless ($::UPLOAD_AND_ACTIVATE or $::UPLOAD_ACTIVATE_STREAM) {
xCAT::SvrUtils::sendmsg("$upload_success_msg", $callback, $node);
}
#Put a delay of 3 seconds to allow time for the BMC to untar the file we just uploaded
if (defined($::UPLOAD_ACTIVATE_STREAM)){
sleep 3;
}
print RFLASH_LOG_FILE_HANDLE "$upload_success_msg\n";
# Try to logoff, no need to check result, as there is nothing else to do if failure
} else {