armbian-oleg: curb rsync logging during bsp

This commit is contained in:
Ricardo Pardini
2023-01-12 15:47:30 +01:00
parent 2c0c968645
commit 12ffcd6319
2 changed files with 3 additions and 1 deletions

View File

@@ -265,7 +265,7 @@ create_board_package() {
EOF
# copy common files from a premade directory structure
run_host_command_logged rsync -av ${SRC}/packages/bsp/common/* ${destination}
run_host_command_logged rsync -a ${SRC}/packages/bsp/common/* ${destination}
# trigger uInitrd creation after installation, to apply
# /etc/initramfs/post-update.d/99-uboot

View File

@@ -117,6 +117,8 @@ create_image_from_sdcard_rootfs() {
It is the last possible chance to modify `$CARD_DEVICE`.
POST_BUILD_IMAGE
# @TODO: using rsync is slow, and only needed if the source & the target are on different devices/filesystems
# @TODO: detect if on the same FS, if so, just "mv" which is a gazillion times faster
display_alert "Moving artefacts from temporary directory to its final destination" "${version}" "info"
[[ -n $compression_type ]] && run_host_command_logged rm -v "${DESTIMG}/${version}.img"
run_host_command_logged rsync -av --no-owner --no-group --remove-source-files "${DESTIMG}/${version}"* "${FINALDEST}"