Skip to content

Commit d4945ec

Browse files
rpardiniigorpecovnik
authored andcommitted
artifacts-obtain: pack_artifact_to_local_cache: force a fsync() before packing
1 parent 26e253b commit d4945ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/functions/artifacts/artifacts-obtain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ function build_artifact_for_image() {
397397

398398
function pack_artifact_to_local_cache() {
399399
if [[ "${artifact_type}" == "deb-tar" ]]; then
400-
declare -a files_to_tar=()
400+
wait_for_disk_sync "before pack_artifact_to_local_cache for deb-tar"
401401
run_host_command_logged tar -C "${artifact_base_dir}" -cf "${artifact_final_file}" "${artifact_map_debs[@]}"
402402
display_alert "Created deb-tar artifact" "deb-tar: ${artifact_final_file}" "info"
403403
fi

0 commit comments

Comments
 (0)