aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"