What is the reason that copying .bash_profile from the host system into the /root directory of an iocage thin jail does not create a file that is visible to the root user when logged on to that jail?
In other words, if I do this from the host system:
cp -p .bash_profile /zroot/iocage/jails/testjail/root/
Then ls -al /zroot/iocage/jails/testjail/root/.bash_profile
shows that the file exists.
ls -al /zroot/iocage/jails/testjail/root/.bash_profile
-rwxr-xr-x 1 root wheel 3274 Dec 12 15:42 /zroot/iocage/jails/testjail/root/.bash_profile
However, when I log on to testjail the file is not visible to the root user:
iocage console testjail
ls -a .bash_profile
ls: .bash_profile: No such file or directory
If I check the mounts on the host system then amoung other things I see this:
zroot/iocage/jails/testjail/root on /zroot/iocage/jails/testjail/root (zfs, local, noatime, nfsv4acls)
Which I believe is the source of my difficulty. How do I put a file into the /root directory of an iocage jail so that it is usable by the root user inside the jail?
A: FWIW. A test file created in a similar mount-point
is available to root
Notes:
The directory
/zroot/iocage/jails/testjail/root/
is not the home directory of the root user;/zroot/iocage/jails/testjail/root/root/
is.