Sometime, the users noticed the images in download server have wrong
md5sum and cannot boot. It's possible it's a partial downloaded file,
caused by atomic rsyncing problem. This rsync command line option
will help it.
Change-Id: I9ef2344cd01594fb33080feaaa193714cb4a5570
Signed-off-by: JF Ding <jian-feng.ding@intel.com>
# Through rsync protocol
if destination.startswith('rsync:'):
- cmd = "rsync -av %s/ %s" % (source, destination)
+ cmd = "rsync -av --delay-updates %s/ %s" % (source, destination)
try:
ret_code = subprocess.call(cmd, shell = True)