diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-04-18 12:42:53 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-04-18 12:42:53 -0300 |
commit | 084ca5376f8f1e535f761d29f29a3b896ebcf5d1 (patch) | |
tree | fdf74c6da2d3b75c99bdf1c5c007589d88adbc39 | |
parent | 072c828e80031fdd3df8c115a9806bd2c67da7b5 (diff) | |
download | kvmx-084ca5376f8f1e535f761d29f29a3b896ebcf5d1.tar.gz kvmx-084ca5376f8f1e535f761d29f29a3b896ebcf5d1.tar.bz2 |
Add provision_rsync_opts config
-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" |