Solved FreeBSD-12.0p10, iocage jail, contents of /root in jail

I am testing iocage for jail management. When I copy my existing .bash_profile, .bashrc, and .bash_logout files to /zroot/iocage/jails/testjail/root/ they are visible from the host. However, when I open a console to testjail then these files are not visible to the root user.

I note that the /root directory is mounted separately:

Code:
zroot/iocage/jails/testjail/root on /zroot/iocage/jails/testjail/root (zfs, local, noatime, nfsv4acls)

I have googled for an answer to this but have not found anything that seems to apply. Why is .bash_profile on the jail treated differently than .cshrc?
 
The directory /zroot/iocage/jails/testjail/root/ is not the home directory of the root user; /zroot/iocage/jails/testjail/root/root/ is.
 
Back
Top