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
|
||||
devices = {}
|
||||
for domid in xs.ls('', 'backend/pci'):
|
||||
for devid in xs.ls('', 'backend/pci/' + domid):
|
||||
for domid in xs.ls('', 'backend/pci') or []:
|
||||
for devid in xs.ls('', 'backend/pci/' + domid) or []:
|
||||
devpath = 'backend/pci/' + domid + '/' + devid
|
||||
domain_name = xs.read('', devpath + '/domain')
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user