diff options
author | Eric Hameleers <alien@slackware.com> | 2016-05-05 22:31:13 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2016-05-05 22:31:13 +0200 |
commit | dd4de2a39717931f491787bd7a4d884e20ce7938 (patch) | |
tree | 8f6f598dd060c964b211493d87636010d346e4f2 /iso2usb.sh | |
parent | 1e3b4e2366c2621955f0542f0c3fcd3e0c795a13 (diff) | |
download | liveslak-dd4de2a39717931f491787bd7a4d884e20ce7938.tar.gz liveslak-dd4de2a39717931f491787bd7a4d884e20ce7938.tar.xz |
iso2usb.sh: show some progress info when copying files from ISO to USB.
Diffstat (limited to 'iso2usb.sh')
-rw-r--r-- | iso2usb.sh | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -336,7 +336,6 @@ while [ ! -z "$1" ]; do ;; -v|--verbose) VERBOSE=1 - RVERBOSE=" -v --progress " shift ;; -w|--wait) @@ -506,7 +505,13 @@ fi # Copy the ISO content into the USB Linux partition: echo "--- Copying files from ISO to USB... takes some time." -rsync -a ${RVERBOSE} --exclude=EFI ${ISOMNT}/* ${USBMNT}/ +if [ $VERBOSE -eq 1 ]; then + rsync -av --progress --exclude=EFI ${ISOMNT}/* ${USBMNT}/ +else + # Display some progress because this can take a _long_ time: + rsync -a --no-inc-recursive --info=progress2 --exclude=EFI \ + ${ISOMNT}/* ${USBMNT}/ +fi # Write down the version of the ISO image: VERSION=$(iso-info ${SLISO} |grep Application |cut -d: -f2- 2>/dev/null) |