From owner-freebsd-questions@FreeBSD.ORG Fri Apr 29 23:02:31 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AAAD106566B for ; Fri, 29 Apr 2011 23:02:31 +0000 (UTC) (envelope-from aimass@yabarana.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5D33A8FC0C for ; Fri, 29 Apr 2011 23:02:30 +0000 (UTC) Received: by iwn33 with SMTP id 33so4769321iwn.13 for ; Fri, 29 Apr 2011 16:02:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.65.75 with SMTP id h11mr4193692ibi.149.1304118150564; Fri, 29 Apr 2011 16:02:30 -0700 (PDT) Sender: aimass@yabarana.com Received: by 10.231.23.68 with HTTP; Fri, 29 Apr 2011 16:02:30 -0700 (PDT) In-Reply-To: References: Date: Fri, 29 Apr 2011 19:02:30 -0400 X-Google-Sender-Auth: 2mjETPxx7uiveuG4GxvAF4ewB0A Message-ID: From: Alejandro Imass To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: Ezjail and Flavours X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2011 23:02:31 -0000 On Fri, Apr 29, 2011 at 3:46 PM, Alejandro Imass wrote: > Hi, > Answering myself here... [snip] > Mi idea is to soft-link the complete /usr/local directory of the > compiling jail in the specific flavour so after the packages get > installed I can just copy everything else over /usr/local > It should be pretty safe either way I guess but probably there are > people with a lot more experience with EzJail here ;-) > Did DID NOT work :-( First, Ezjail copies first and installs the packages on first start of the jail. I knew this but had forgotten so it is logical that first copy the pkg install, duh! Second, EzJail just copies the soft link and this of course will not work just like that for obvious security reasons. I erased the jail and tried a second time... So here is what I did and seems to work: 1) Create your jail flavour standard with packages and all 2) Start the jail. This will install packages 3) Stop the jail 4) Copy the entire /usr/local of your compile jail to your new jail 5) Start the working jail This seems easy enough and seems to be working perfectly! What I have is different flavors of compiling jails: php52, php53, catalyst 5.8, apache22, etc. Those are never used for production. Only to compile and generate the packages for the EzJail flavours. The other option would be to phisically copy the contents of /usr/local to the flavour but I think it's a better idea to let the packages install and _then_ copy /usr/local over that. Anyway, it's working so cool! Man, FBSD really rocks! Regardless of the thousands of technical benefits, the clean cut separation of system and applications, _and_ Jails is to me, one the greatest things about FBSD. -- Alejandro Imass > Thanks! > > -- > Alejandro Imass >