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

put a delay of 3 seconds to untar the firmware file for rflash -d

This commit is contained in:
bybai
2018-07-20 01:51:17 -04:00
parent 21ed280d14
commit 5096b82aac

View File

@ -4773,6 +4773,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 untar the file
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 {