I am attempting to create a virtual mount using bind mounts in combination with OverlayFS. What would be most optimal is as follows:
The root folder is bind-mounted to a new sub-folder, and used as the lower directory. A new upper directory is created to save the differences of the overlay, a
work_dir directory for the
workdir component and finally a
mnt directory to mount the overlay to.
The issue I am having, is that once this is set-up, the contents of the bind mount do not appear in the overlay.
I have researched different properties of the mounts, including the use of recursive mounts and shared/non-shared mounts. Alternatively, I tried bind mounting the individual folders on the root to respective folders under the lowerdir; still no files. Am I missing a setting in either of the mounts, or is this simply not possible?