Using ezjail for some testing of jails which sets up the basejail and a lightjail by default. It seems these jails are never started but mounted with null to any new jail that is created. I want to:
1. Add some ports to the basejail (sudo for ex) so that it will propagate to all child jails. If I just chroot to the basejail folder and do some pkg_add, will all child folders be populated with the added ports? I think I need to chroot to the lightjail folder because the basejail does not have a /var folder, but then the links to /usr will not work. What is the best way to add ports to basejail?
2. Mount my ports folder into basejail using nullfs for purpose of Q1. I do not see the purpose of downloading a separate ports tree for jail as told in the documentation - but which jail's fstab (light or base) should I modify? This question is related to Q1 since I do not yet understand how base and light interact / call each others folders.
3. If I create a pxeboot jail for diskless clients, where (base, light, pxeboot) and how (cp ok?) should I place /boot/kernel?
1. Add some ports to the basejail (sudo for ex) so that it will propagate to all child jails. If I just chroot to the basejail folder and do some pkg_add, will all child folders be populated with the added ports? I think I need to chroot to the lightjail folder because the basejail does not have a /var folder, but then the links to /usr will not work. What is the best way to add ports to basejail?
2. Mount my ports folder into basejail using nullfs for purpose of Q1. I do not see the purpose of downloading a separate ports tree for jail as told in the documentation - but which jail's fstab (light or base) should I modify? This question is related to Q1 since I do not yet understand how base and light interact / call each others folders.
3. If I create a pxeboot jail for diskless clients, where (base, light, pxeboot) and how (cp ok?) should I place /boot/kernel?