aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx6
1 files changed, 5 insertions, 1 deletions
diff --git a/kvmx b/kvmx
index cdd0d39..5cf833c 100755
--- a/kvmx
+++ b/kvmx
@@ -244,7 +244,11 @@ function kvmx_up {
fi
echo "Copying base image $baseimage to $image..."
- cp $baseimage $image
+ if which rsync &> /dev/null; then
+ rsync -ah --progress $baseimage $image
+ else
+ cp $baseimage $image
+ fi
if [ -e "$basekey" ]; then
imagekey="`dirname $image`/ssh/`basename $image .img`.key"