I'm having trouble finding an answer for this question
Does mount --bind persist over reboot?
On my CentOS it looks like it doesn't, so I've placed apropriate mount --bind calls in rc.local.
How can I do mount --bind to avoid rc.local scenario?
I'm having trouble finding an answer for this question
Does mount --bind persist over reboot?
On my CentOS it looks like it doesn't, so I've placed apropriate mount --bind calls in rc.local.
How can I do mount --bind to avoid rc.local scenario?
Create an entry for the bound mount in your /etc/fstab. An example is below.
/path/to/source/dir /path/to/mount/point none bind 0 0
You should add the appropriate info into /etc/fstab in order to mount the filesystem at boot.