File system (btrfs) on md volume fails to auto mount at boot
I have the following entry in
config mount option uuid 'ba70949d-1f49-4e22-8c5a-d178634abf14' option label 'addons' option device '/dev/md0' option target '/addons' option enabled '1'
corresponding to this md volume:
root@router:/storage/0# blkid /dev/md0 /dev/md0: LABEL="addons" UUID="ba70949d-1f49-4e22-8c5a-d178634abf14" UUID_SUB="76e639e2-26d7-4802-b6a0-b94aaf8fc4e4" TYPE="btrfs"
The entry shows up in LuCI under System->Mount Points. However, the file system fails to mount at boot.
I can work around this by adding
mdadm --assemble --scanin
/etc/rc.local which leads to the file system being mounted at boot. However, it's apparently mounted relatively late in the boot process and thus LXC containers I have stored there fail to auto start.
What would be the correct way to have this FS mount at boot?