diff options
-rwxr-xr-x | kvmx | 2 | ||||
-rw-r--r-- | kvmxfile | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -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..." @@ -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" |