Ticket #17051: t17051.patch

File t17051.patch, 834 bytes (added by beaglejoe, 3 years ago)
  • src/system/boot/platform/efi/devices.cpp

    diff --git a/src/system/boot/platform/efi/devices.cpp b/src/system/boot/platform/efi/devices.cpp
    index 18c7180562..a1a2f6bb99 100644
    a b platform_add_block_devices(struct stage2_args *args, NodeList *devicesList)  
    235235    TRACE("%s: called\n", __func__);
    236236
    237237    //TODO: Currently we add all in platform_add_boot_device
    238     return B_ENTRY_NOT_FOUND;
     238    return B_OK;
    239239}
    240240
    241241
    platform_get_boot_partitions(struct stage2_args *args, Node *bootDevice,  
    247247    boot::Partition *partition = NULL;
    248248    while ((partition = (boot::Partition*)iterator.Next()) != NULL) {
    249249        if (device_contains_partition((EfiDevice*)bootDevice, partition)) {
    250             iterator.Remove();
     250            //iterator.Remove();
    251251            bootPartitions->Insert(partition);
    252252        }
    253253    }