From a310e5e52ff93d15a16b96bf84e486379c6e5f68 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Mon, 9 Sep 2019 20:51:58 -0400 Subject: [PATCH] kernel/fs: Continue even if InitialDeviceScan returns an error. See inline comment. Should fix #15330. --- src/system/kernel/fs/vfs_boot.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/system/kernel/fs/vfs_boot.cpp b/src/system/kernel/fs/vfs_boot.cpp index f84b7e1681..db8c7f8fd7 100644 --- a/src/system/kernel/fs/vfs_boot.cpp +++ b/src/system/kernel/fs/vfs_boot.cpp @@ -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