From d6947e04abf6151e299637ab58c2e9787e1b9fae Mon Sep 17 00:00:00 2001 From: Pete Date: Wed, 7 Feb 2024 18:38:56 -0500 Subject: [PATCH] silence rsync progress in harv-install (#641) * silent rsync progress in harv-install Because this is running without a TTY, it may be affecting IPMI-based installs that take hours to read the zst files off of virtual media. This patch removes the progress flag from rsync in the hopes that it prevents rsync from freezing during install. * restore -h and add -v flags Human-readable and verbose flags added per developer request. --- package/harvester-os/files/usr/sbin/harv-install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/harvester-os/files/usr/sbin/harv-install b/package/harvester-os/files/usr/sbin/harv-install index cfab05ef9..f146c6368 100755 --- a/package/harvester-os/files/usr/sbin/harv-install +++ b/package/harvester-os/files/usr/sbin/harv-install @@ -161,10 +161,10 @@ preload_rke2_images() # Otherwise (PXE), use bind-mount directly to speed up the process if [ "$INSTALL_MODE" = "ISO" ]; then echo "Copying RKE2 images to the target location..." - rsync -ah --progress ${ISOMNT}/bundle/harvester/images/rke2-images.*.tar.zst $TARGET/$RKE2_IMAGES_DIR + rsync -ahv ${ISOMNT}/bundle/harvester/images/rke2-images.*.tar.zst $TARGET/$RKE2_IMAGES_DIR echo "Copying remaining images temporary location..." - rsync -ah --progress ${ISOMNT}/bundle/harvester/images/ $TARGET/$TMP_IMAGES_DIR - rsync -ah --progress ${ISOMNT}/bundle/harvester/images-lists/ $TARGET/$IMAGES_LISTS_DIR + rsync -ahv ${ISOMNT}/bundle/harvester/images/ $TARGET/$TMP_IMAGES_DIR + rsync -ahv ${ISOMNT}/bundle/harvester/images-lists/ $TARGET/$IMAGES_LISTS_DIR else echo "Bind-mount images directory to the target location..." mount --bind ${ISOMNT}/bundle/harvester/images $TARGET/$RKE2_IMAGES_DIR