--- linux-2.6.8-rc3-plain/fs/partitions/mac.c 2004-08-05 19:49:30.000000000 +0200 +++ linux-2.6.8-rc3-hw1/fs/partitions/mac.c 2004-08-05 19:52:06.000000000 +0200 @@ -4,6 +4,10 @@ * Code extracted from drivers/block/genhd.c * Copyright (C) 1991-1998 Linus Torvalds * Re-organised Feb 1998 Russell King + * + * 2004-08-05 Harald Welte : + * - Add support for md-raid autodetection to make md-raid bootable + * (Partition type "Linux_raid_autodetect") */ #include @@ -110,6 +114,9 @@ goodness--; } + if (strcasecmp(part->type, "Linux_raid_autodetect") == 0) + state->parts[slot].flags = 1; + if (goodness > found_root_goodness) { found_root = blk; found_root_goodness = goodness;