I am performing the following on FreeBSD 9.0-STABLE:
mount_nullfs /foo /jail/foo
After that, from within the host system, the mount works. So this works:
touch /foo/bar && ls /jail/foo/bar
But when I change into the jail the mounted directory is empty:
jexec 1 tcsh
ls /foo/bar
I get:
ls: /foo/bar: No such file or directory
/foo is completely empty.
How can I have the files in the mounted directory show up correctly when mounted inside the chroot as found in the host system?