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.
pull/28/head
Marek Marczykowski-Górecki 7 years ago
parent 005fed6cdf
commit 2fb94bd3e6
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -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 -- "$@"

Loading…
Cancel
Save