Comment 16 for bug 441454

nivlac (carndt) wrote :

Scott,

mount and its options in fstab will not mount a raid device attached to a file.

/somefile /somelocation ext4 loop 0 0

because mdadm must assemble and start the array first:

mdadm --assemble --scan /dev/someloopdevice

and losetup needs to setup that loop device first:

losetup /somefile /dev/someloopdevice

Any idea what the right way to do this is on boot!

More background:

This device won't be mounted in the host os.

the array gets mounted in an lxc container

yet the host OS must do the losetup and the array assemble

and start for the container to use the device...