Skip to content

Commit

Permalink
silence rsync progress in harv-install (harvester#641)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
petiepooo authored Feb 7, 2024
1 parent 9f7a997 commit d6947e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package/harvester-os/files/usr/sbin/harv-install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6947e0

Please sign in to comment.