I need to "bind" one directory to many chrooted places. I know that I can do "mount -o bind", but this requires special processing on startup each time (run the mount).
Is there a way to do it on the filesystem directly? My fs is ext4 and it seems not to support hardlinks to directories. Hardlinking all files inside is not an option too.
Is thee a way to enable hardlinks to directories in ext4? Or any other options are avilable?
Best Answer
Just add lines to your
/etc/fstab
:After doing this, the the bind mount will be performed each time the system boots.