summaryrefslogtreecommitdiff
path: root/sys-boot/grub/files/grub-1.99-workaround-raid-bios-bug.patch
blob: 391c40acbe2f5805596a94ac4bbe871e5006059a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -Nurp grub-1.99.orig/grub-core/disk/raid.c grub-1.99/grub-core/disk/raid.c
--- grub-1.99.orig/grub-core/disk/raid.c	2011-04-18 23:16:16.000000000 +0200
+++ grub-1.99/grub-core/disk/raid.c	2011-06-11 10:48:16.606998702 +0200
@@ -562,13 +562,6 @@ insert_array (grub_disk_t disk, struct g
 			     "superfluous RAID member (%d found)",
 			     array->total_devs);
 
-        if (array->members[new_array->index].device != NULL)
-          /* We found multiple devices with the same number. Again,
-             this shouldn't happen.  */
-	  return grub_error (GRUB_ERR_BAD_DEVICE,
-			     "found two disks with the index %d for RAID %s",
-			     new_array->index, array->name);
-
         if (new_array->disk_size < array->disk_size)
           array->disk_size = new_array->disk_size;
         break;