Skip boot device check sum test on CD boot

Whatever we read from the drive in the boot loader isn't what we can
read from the device later, so rather skip the check sum test for
identifying the boot device in the kernel when booting off CD. Fixes
#10147.
This commit is contained in:
Ingo Weinhold 2013-10-28 01:17:42 +01:00
parent 3fe3603ada
commit fdaba7aaa5

View File

@ -222,6 +222,11 @@ DiskBootMethod::IsBootDevice(KDiskDevice* device, bool strict)
if (strict && device->Size() != disk->device.unknown.size)
return false;
// Skip the check sum test for CDs, since we didn't read anything
// useful from the disk in the boot loader.
if (fMethod == BOOT_METHOD_CD)
break;
// check if the check sums match, too
for (int32 i = 0; i < NUM_DISK_CHECK_SUMS; i++) {
if (disk->device.unknown.check_sums[i].offset == -1)