kernel/fs: Continue even if InitialDeviceScan returns an error.

See inline comment. Should fix #15330.
This commit is contained in:
Augustin Cavalier 2019-09-09 20:51:58 -04:00
parent 598b8e19a2
commit a310e5e52f

View File

@ -360,9 +360,11 @@ get_boot_partitions(KMessage& bootVolume, PartitionStack& partitions)
status = manager->InitialDeviceScan();
if (status != B_OK) {
dprintf("KDiskDeviceManager::InitialDeviceScan() failed: %s\n",
dprintf("KDiskDeviceManager::InitialDeviceScan() returned error: %s\n",
strerror(status));
return status;
// InitialDeviceScan returns error if one (or more) partitions are
// determined to be invalid. The partition we are trying to boot from
// may be usuable anyway, so don't fail here.
}
#if KDEBUG