From 084ca5376f8f1e535f761d29f29a3b896ebcf5d1 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 18 Apr 2017 12:42:53 -0300 Subject: Add provision_rsync_opts config --- kvmx | 2 +- kvmxfile | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3