qubes/ext/pci: fix handling dom0 before starting first VM
Before starting fist VM, backend/pci xenstore directory does not exists. Do not crash on it QubesOS/qubes-issues#2257
This commit is contained in:
parent
2956f62bbc
commit
8ca08c7790
@ -97,8 +97,8 @@ def attached_devices(app):
|
|||||||
|
|
||||||
xs = app.vmm.xs
|
xs = app.vmm.xs
|
||||||
devices = {}
|
devices = {}
|
||||||
for domid in xs.ls('', 'backend/pci'):
|
for domid in xs.ls('', 'backend/pci') or []:
|
||||||
for devid in xs.ls('', 'backend/pci/' + domid):
|
for devid in xs.ls('', 'backend/pci/' + domid) or []:
|
||||||
devpath = 'backend/pci/' + domid + '/' + devid
|
devpath = 'backend/pci/' + domid + '/' + devid
|
||||||
domain_name = xs.read('', devpath + '/domain')
|
domain_name = xs.read('', devpath + '/domain')
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user