aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-04-18 12:42:53 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-04-18 12:42:53 -0300
commit084ca5376f8f1e535f761d29f29a3b896ebcf5d1 (patch)
treefdf74c6da2d3b75c99bdf1c5c007589d88adbc39
parent072c828e80031fdd3df8c115a9806bd2c67da7b5 (diff)
downloadkvmx-084ca5376f8f1e535f761d29f29a3b896ebcf5d1.tar.gz
kvmx-084ca5376f8f1e535f761d29f29a3b896ebcf5d1.tar.bz2
Add provision_rsync_opts config
-rwxr-xr-xkvmx2
-rw-r--r--kvmxfile3
2 files changed, 4 insertions, 1 deletions
diff --git a/kvmx b/kvmx
index cf97b99..7329b8c 100755
--- a/kvmx
+++ b/kvmx
@@ -748,7 +748,7 @@ function kvmx_provision {
echo "Syncing provision files into the guest..."
echo "sudo mkdir -p `dirname $DEST`" | kvmx_ssh
- rsync -av -e "$SSH_COMMAND -o Port=$SSH" --rsync-path "sudo rsync" $ORIG/ $SSH_LOGIN@127.0.0.1:$DEST/
+ rsync -av -e "$SSH_COMMAND -o Port=$SSH" $provision_rsync_opts --rsync-path "sudo rsync" $ORIG/ $SSH_LOGIN@127.0.0.1:$DEST/
fi
echo "Running provision command inside the guest..."
diff --git a/kvmxfile b/kvmxfile
index 0daf579..45b5e2a 100644
--- a/kvmxfile
+++ b/kvmxfile
@@ -18,6 +18,9 @@ shared_folder_mountpoint="/home/$user/code/$VM"
# Folder to sync during provisioning in the format "/host/folder /guest/folder".
#provision_rsync="$KVMX_BASE/share/provision/ /usr/local/share/kvmx/provision/"
+# Options for provision_rsync
+#provision_rsync_opts="--exclude=somefolder"
+
# Absolute path for a provision script located inside the guest.
#provision_command="/usr/local/share/kvmx/provision/desktop-basic"