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 committed Nov 17, 2024
1 parent e31a4de commit cd0db4a
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 @@ -216,7 +216,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 cd0db4a

Please sign in to comment.