Skip to content

Commit

Permalink
rootfs-to-image: preserve sparse files when moving artefacts to final…
Browse files Browse the repository at this point in the history
… destination with rsync
  • Loading branch information
alex3d authored and igorpecovnik committed Dec 24, 2024
1 parent b80ff2c commit 4fd0e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/functions/image/rootfs-to-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function move_images_to_final_destination() {
done
else
display_alert "Moving artefacts using rsync to final destination" "${version}" "info"
run_host_command_logged rsync -av --no-owner --no-group --remove-source-files "${DESTIMG}/${version}"* "${FINALDEST}"
run_host_command_logged rsync -av --sparse --no-owner --no-group --remove-source-files "${DESTIMG}/${version}"* "${FINALDEST}"
run_host_command_logged rm -rfv --one-file-system "${DESTIMG}"
fi
return 0
Expand Down

0 comments on commit 4fd0e0c

Please sign in to comment.