libvm: Set -o User=root for rsync too

Without fuse-sshfs, we also need to set the root user, which
is necessary for the Vagrant case.

Closes: #560
Approved by: jlebon
This commit is contained in:
Colin Walters 2017-01-09 13:10:40 -05:00 committed by Atomic Bot
parent be7dd69b7b
commit 55caec269d

View File

@ -39,7 +39,7 @@ vm_setup() {
vm_rsync() { vm_rsync() {
if ! test -f .vagrant/using_sshfs; then if ! test -f .vagrant/using_sshfs; then
pushd ${topsrcdir} pushd ${topsrcdir}
rsync -az --no-owner --no-group -e "ssh -F ssh-config" \ rsync -az --no-owner --no-group -e "ssh -o User=root -F ssh-config" \
--exclude .git/ . vmcheck:/var/roothome/sync --exclude .git/ . vmcheck:/var/roothome/sync
popd popd
fi fi