As far as I know, nullfs(5) is useful for sharing an existing and mounted directory between jails. I can edit fstab(5) file of each jails:
But it seems probably true that only directory can be shared.
Is there any solution if I just want share a single file instead of a directory?
Code:
/path/to/be/shared /usr/jails/foo/path/shared nullfs ro 0 0
/path/to/be/shared /usr/jails/bar/path/shared nullfs rw 0 0
But it seems probably true that only directory can be shared.
Code:
# This code snippet doesn't work if /root/.emacs is a regular file.
/root/.emacs /usr/jails/foo/root/.emacs nullfs ro 0 0
Is there any solution if I just want share a single file instead of a directory?