remove the bit that tries to take the name= attrib out of the raid set. its just not reliable due to variances in the output of mdadm, and doesnt seem to do any harm