dvp/qvm-usb: split installation script for non-dom0 usb backend

This commit is contained in:
Alexandre Bezroutchko 2012-10-10 22:57:18 +02:00
parent 5017c4bef2
commit 24959d014b
2 changed files with 14 additions and 7 deletions

View File

@ -6,13 +6,9 @@
##
# Copy files
for f in usb_add_change usb_remove xl-qvm-usb-attach.py ; do
cp misc/$f /usr/lib/qubes/$f
done
cp dom0/qvm-core/qubesutils.py /usr/lib64/python2.6/site-packages/qubes/qubesutils.py
cp dom0/qvm-tools/qvm-usb /usr/bin/qvm-usb
cp misc/usb_add_change /usr/lib/qubes/usb_add_change
cp misc/usb_remove /usr/lib/qubes/usb_remove
# FIXME cp misc/xen-vusb-helper.py /usr/lib/qubes/xen-vusb-helper.py
cp misc/qubes_usb.rules /etc/udev/rules.d/99-qubes_usb.rules
# Reload PVUSB backend and cleanup xenstore

11
install-pvusb-dom0.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh -xe
##
## Run this script in dom0
## FIXME: this has to be done after each reboot
##
# Copy files
cp misc/xl-qvm-usb-attach.py /usr/lib/qubes/xl-qvm-usb-attach.py
cp dom0/qvm-core/qubesutils.py /usr/lib64/python2.6/site-packages/qubes/qubesutils.py
cp dom0/qvm-tools/qvm-usb /usr/bin/qvm-usb