Does /etc/config/fstab allow for bind mounts? I am mounting a partition defined in /etc/config/fstab currently and would like to define a 2nd mount point from a directory under it to another on my filesystem. I did not see how I could define a mount by a directory, it seems to want only a UUID.
I guess using the code in my /etc/rc.local is what I need for the bind... it is odd to me that the code actually works because /etc/rc.local gets run AFTER everything else in the init process as I understand it. If that is true, I do not understand how my LXC is able to start since it is getting called by /etc/init.d/lxc-auto which should start before the filesystem is mounted, no? Must be some race condition allowing it to work just by chance where the /etc/rc.local mounts the bind mount before lxc-auto starts the container. Is that right?
Note that the init system is partially asynchronous. The START priority order just specifies the order where each service is started, but there is no guarantee that all earlier services have completed their init process before the next ones are started.
rc.local run with priority 95 by "/etc/init.d/done". It is currently not quite last, and sadly several services compete trying to "be the last".
LXC is apparently one of those: START 99
You can mount inside lxc (kmod for openwrt may be required to be installed like for nfs), or use a bind in lxc config (an exemple from one of my own lxc file config)
Thanks @erdoukki. I knew about bind mounts in the LXC. I should just simplify my setup and just use /mnt/mmcblk0p3/lxc/ in my config and not even mess with the bind mount.