From owner-freebsd-jail@freebsd.org Mon Feb 22 10:57:03 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BCB79AB0D14 for ; Mon, 22 Feb 2016 10:57:03 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 83B8F1CBC for ; Mon, 22 Feb 2016 10:57:02 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id E26BA2840C; Mon, 22 Feb 2016 11:56:53 +0100 (CET) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 11C7928417; Mon, 22 Feb 2016 11:56:53 +0100 (CET) Message-ID: <56CAE974.4050508@quip.cz> Date: Mon, 22 Feb 2016 11:56:52 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:35.0) Gecko/20100101 Firefox/35.0 SeaMonkey/2.32 MIME-Version: 1.0 To: Aristedes Maniatis CC: freebsd-jail Subject: Re: Jail management References: <0f5cae7e-7de3-2617-fcf6-3423d4caf13a@ish.com.au> In-Reply-To: <0f5cae7e-7de3-2617-fcf6-3423d4caf13a@ish.com.au> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2016 10:57:03 -0000 Aristedes Maniatis wrote on 02/22/2016 03:18: [...] > Have I just now outgrown ezjail and should set off on my own? I'm afraid of how I'd go about upgrading the basejail for new FreeBSD host versions without your tool :-) I don't know your environment and your FreeBSD jails skills but it seems you think jails are something complex and "magic". It is not. Managing jail by "hand" (own simple tools and scripts) is really simple and straight forward. Creating new base jail is just 'make installworld DESTDIR=/vol/jail/_basejail_XYZ' (or extracting base.txz installation archive) Movin your old jail to newer basejail is metter of change in fstab file where you will change path to new basejail. Once you tried it you will found how simple it is to write some own script perfectly fitting your needs. It is just a file manipulation - installing, unpacking, movin, deleting. Nothing more. As time and projects passed by, I had scripts to create+update jail from FTP, or from NFS mounted src and obj (by make installworld), or unpacking TGZ archive, or updated by rsyncing fails from hosts base or another directory... There are so many ways you can do this and I don't think you will find any existing tool fitting all your needs. Just don't be afraid of writing simple shell scripts :) For your problem with installing old versions of packages - I think you are still able to install whatever version you need if you have it locally on disk. Then you can use "pkg install my-package-1.2.3.txz" (you need all dependencies as well) Miroslav Lachman