diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vbexport/boot_device_scsi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/vbexport/boot_device_scsi.c b/lib/vbexport/boot_device_scsi.c index a70d6262fe..6afbd25dca 100644 --- a/lib/vbexport/boot_device_scsi.c +++ b/lib/vbexport/boot_device_scsi.c @@ -15,8 +15,10 @@ static int boot_device_scsi_start(uint32_t disk_flags) { - /* We expect to have at least one SCSI device */ - return 1; + /* boot_interface->start() returns the number of + * hard drives/boot devices for that interface + */ + return scsi_get_disk_count(); } static int boot_device_scsi_scan(block_dev_desc_t **desc, int max_devs, |