aboutsummaryrefslogtreecommitdiff
path: root/kvmx
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-05-12 13:59:24 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-05-12 13:59:24 -0300
commitabebbffa068018e9c849a26bab1eb309aaf07d23 (patch)
treeff79d993340069fe2cd62fe30a85cb6bdf92aaaa /kvmx
parentf1cb2816de46aa2d400cad53172b063032020684 (diff)
downloadkvmx-abebbffa068018e9c849a26bab1eb309aaf07d23.tar.gz
kvmx-abebbffa068018e9c849a26bab1eb309aaf07d23.tar.bz2
Try rsync on kvmx_clone
Diffstat (limited to 'kvmx')
-rwxr-xr-xkvmx9
1 files changed, 8 insertions, 1 deletions
diff --git a/kvmx b/kvmx
index e96054c..27ac049 100755
--- a/kvmx
+++ b/kvmx
@@ -717,7 +717,14 @@ function kvmx_clone {
rmdir $FOLDER
# Copy image and configuration
- cp -r `dirname $image` $FOLDER/
+ echo "Copying basebox..."
+ if which rsync &> /dev/null; then
+ rsync -ah --progress `dirname $image`/ $FOLDER/
+ else
+ cp -r `dirname $image` $FOLDER/
+ fi
+
+ # Create config entry
( cd $GLOBAL_USER_CONFIG_FOLDER && ln -s $FOLDER/kvmxfile $DEST )
# Update config file