A proper way to install ports into a jail, from the host machine

Kevin Way kevin at insidesystems.net
Fri Jun 18 14:49:14 GMT 2004

The issue occurs when you want to setup/upgrade machines that have N 
jails on them.  Right now I can install the majority of ports like 

	jail_portinstall shells/zsh all

  and zsh will get installed into every single jail.  The place where 
this falls apart is jails that do user/group management.  The checks 
for user/group existence, and the commands for adding users/groups are 
generally hard coded such that it's not possible to specify an 
alternate etc directory, or to ensure that you set file ownership 
correctly if you modify it manually.

We're looking for feedback on whether a patchset that attempts to 
modularize the user/group tests would receive any acceptance, and also 
to find out if anybody else is currently looking at solving this 

Kevin Way

On Jun 18, 2004, at 7:19 AM, Brian Reichert wrote:

> On Thu, Jun 17, 2004 at 07:58:08AM -0700, Kevin Way wrote:
>> The first problem is that scripts which check for and create users 
>> (and
>> change ownership on files/directories) aren't currently setup to do so
>> with respect to a jailed environment.
> Why not install ports/packages from within the jail?
>> Kevin Way
>> InsideSystems
> -- 
> Brian Reichert				<reichert at numachi.com>
> 37 Crystal Ave. #303			Daytime number: (603) 434-6842
> Derry NH 03038-1713 USA			BSD admin/developer at large	

More information about the freebsd-ports mailing list