From 5096b82aac5f442ae50cda0da81e4ac58eb42d20 Mon Sep 17 00:00:00 2001 From: bybai Date: Fri, 20 Jul 2018 01:51:17 -0400 Subject: [PATCH] put a delay of 3 seconds to untar the firmware file for rflash -d --- xCAT-server/lib/xcat/plugins/openbmc.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index 74f711bf3..5b0394722 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -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 {