I'm sorry but I've no time now to deal with this bug again, but it's easy to reproduce: launch an EC2 instance with Ubuntu 10.04 64bit EBS (AMI ami-3abf954e in EU as you can find here http://uec-images.ubuntu.com/releases/lucid/release/ ), attach a couple of EBS disks to it just to test, then try to create a new RAID0 in /dev/md0 and you'll get an error (even /proc/mdstat doesn't not exist if I remember correctly). Applying your patch let the installation of mdadm finish but doesn't solve the problems with RAID.
I'm sorry but I've no time now to deal with this bug again, but it's easy to reproduce: launch an EC2 instance with Ubuntu 10.04 64bit EBS (AMI ami-3abf954e in EU as you can find here http:// uec-images. ubuntu. com/releases/ lucid/release/ ), attach a couple of EBS disks to it just to test, then try to create a new RAID0 in /dev/md0 and you'll get an error (even /proc/mdstat doesn't not exist if I remember correctly). Applying your patch let the installation of mdadm finish but doesn't solve the problems with RAID.