What's the preferred way to differentiate BIOS fakeraid from regular software mdraid?
I ask this as I'm booting with GRUB2 off a system that has one of those Intel fakeraid chipsets. As of a few months ago, the mdadm package has supported these fakeraid setups, so the RAID array comes up as a /dev/md### device. This is unfortunate, as GRUB2 assumes that any device of the type /dev/md### must be a pure software RAID device, and in util/grub-setup.c:939, tries to install itself to the RAID members individually:
For a fakeraid setup, however, the BIOS presents the entire device as "regular" int13 device, so GRUB2 really should be installing it to the entire /dev/md### device, not the individual members.
So what's the preferred way to differentiate BIOS fakeraid? Is there some ioctl that would make this easier than having to parse /proc/mdstat?