I am not super familiar with raid.
Have its functions changed in recent versions ?
That is - is the /dev/md/${i} deprecated in favor of /dev/${i} ?
or do we need to make provisions for both cases ?
When i setup the raid, then i typed the name boot for the first partition /dev/md127 and root for the second partition /dev/md126. The names don’t get recognized. if i write nothing, same problem also. Not able to mount. But if i write the name md127 for /dev/md127 and md126 for /dev/md126, then it worked.
The script can’t detect the current names.
I would solve it myself but i am not familiar with awk.