I was working in my Jails today and I had some issues with accessing the R/W areas. I made some link changes that seemed to have corrected the issues:
Here are the changes (in the infrastructure section)
Code:
= Now, symlink the read-write file system to the read-only file system.
# cd $D/mroot
# mkdir s
# ln -s /s/etc etc
# ln -s /s/home home
# ln -s /s/root root
# ln -s /s/usr-local usr/local
# ln -s /s/usr-X11R6 usr/X11R6
# ln -s /s/distfiles usr/ports/distfiles
# ln -s /s/tmp tmp
# ln -s /s/var var
Basically I just changed the "s/..." to "/s/..." when creating the links.
- - - - - - -
Someone wrote me regarding this thread and suggested the following link:
http://jail-primer.sourceforge.net
I believe this is related to the: "qjail" port. There is some good info in this document, especially about /etc/jail.conf options. My only issue with the doc is that there is no reference to ZFS and having a jail configuration built on it.
I think Jails+ZFS has great advantages but I understand jails don't "need" ZFS.