qvm-copy-to-vm: use --service option

qvm-run got --service option, so use it. Old method doesn't work
anymore, because qubes.VMShell service is used, instead of qrexec
command directly.
This commit is contained in:
Marek Marczykowski-Górecki 2017-07-05 14:26:11 +02:00
parent 005fed6cdf
commit 2fb94bd3e6
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -36,7 +36,7 @@ mkfifo -- "$RESPONSE"
# can't use $@ with --localcmd, and $* would fail on whitespace
/usr/lib/qubes/qfile-dom0-agent "$@" <"$RESPONSE" |
qvm-run --pass-io "$VM" "QUBESRPC qubes.Filecopy dom0" >"$RESPONSE"
qvm-run --pass-io --service "$VM" "qubes.Filecopy" >"$RESPONSE"
if [ "${0##*/}" = "qvm-move-to-vm" ]; then
rm -rf -- "$@"