mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xend: fix vscsi error path
Fix xend start problem on non-Linux Dom0 where /proc/mount doesn't exist. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
This commit is contained in:
1 parent
f7ffd86d52
commit
e8f30212b1
1 file changed
+4
-1
@@ -112,7 +112,10 @@ def _vscsi_get_scsidevices_by_sysfs():
|
||||
""" get all scsi devices information by sysfs """
|
||||
|
||||
devices = []
|
||||
sysfs_mnt = utils.find_sysfs_mount()
|
||||
try:
|
||||
sysfs_mnt = utils.find_sysfs_mount()
|
||||
except:
|
||||
return devices
|
||||
|
||||
for dirpath, dirnames, files in os.walk(sysfs_mnt + SYSFS_SCSI_PATH):
|
||||
for hctl in dirnames:
|
||||
|
||||