dom0/qvm-usb: Automatically create XS directory for USB devices
This commit is contained in:
parent
e27fe3189c
commit
9fe165ebb4
@ -34,12 +34,6 @@ In dom0, after each dom0 reboot:
|
||||
sudo ./install-pvusb-dom0.sh
|
||||
FIXME: merge the installer into some rpm
|
||||
|
||||
In dom0, after each usbvm reboot:
|
||||
usbvm_xid=`xl list | awk '($1=="usbvm"){print $2}'`
|
||||
xenstore-write /local/domain/${usbvm_xid}/qubes-usb-devices ''
|
||||
xenstore-chmod /local/domain/${usbvm_xid}/qubes-usb-devices n0 b${usbvm_xid}
|
||||
FIXME: some kind of hook in dom0?
|
||||
|
||||
In usbvm, after each reboot:
|
||||
sudo ./install-pvusb-backend.sh
|
||||
FIXME: convert the installer into "qubes-pvusb-backend" rpm?
|
||||
|
@ -874,6 +874,10 @@ class QubesVm(object):
|
||||
"{0}/qubes-block-devices".format(domain_path),
|
||||
'')
|
||||
|
||||
xs.write('',
|
||||
"{0}/qubes-usb-devices".format(domain_path),
|
||||
'')
|
||||
|
||||
xs.write('', "{0}/qubes-debug-mode".format(domain_path),
|
||||
str(int(self.debug)))
|
||||
|
||||
@ -884,6 +888,8 @@ class QubesVm(object):
|
||||
[{ 'dom': xid }])
|
||||
xs.set_permissions('', '{0}/qubes-block-devices'.format(domain_path),
|
||||
[{ 'dom': xid }])
|
||||
xs.set_permissions('', '{0}/qubes-usb-devices'.format(domain_path),
|
||||
[{ 'dom': xid }])
|
||||
|
||||
def get_rootdev(self, source_template=None):
|
||||
if self.template:
|
||||
|
@ -9,4 +9,5 @@
|
||||
cp misc/xl-qvm-usb-attach.py /usr/lib/qubes/xl-qvm-usb-attach.py
|
||||
cp misc/xl-qvm-usb-detach.py /usr/lib/qubes/xl-qvm-usb-detach.py
|
||||
cp dom0/qvm-core/qubesutils.py /usr/lib64/python2.6/site-packages/qubes/qubesutils.py
|
||||
cp dom0/qvm-core/qubes.py /usr/lib64/python2.6/site-packages/qubes/qubes.py
|
||||
cp dom0/qvm-tools/qvm-usb /usr/bin/qvm-usb
|
||||
|
Loading…
Reference in New Issue
Block a user