summaryrefslogtreecommitdiffstats
path: root/iso2usb.sh
diff options
context:
space:
mode:
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
commitdd4de2a39717931f491787bd7a4d884e20ce7938 (patch)
tree8f6f598dd060c964b211493d87636010d346e4f2 /iso2usb.sh
parent1e3b4e2366c2621955f0542f0c3fcd3e0c795a13 (diff)
downloadliveslak-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.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/iso2usb.sh b/iso2usb.sh
index ca4bf4e..211fb49 100644
--- a/iso2usb.sh
+++ b/iso2usb.sh
@@ -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)