Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Feb 2016 11:56:52 +0100
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        Aristedes Maniatis <ari@ish.com.au>
Cc:        freebsd-jail <freebsd-jail@freebsd.org>
Subject:   Re: Jail management
Message-ID:  <56CAE974.4050508@quip.cz>
In-Reply-To: <0f5cae7e-7de3-2617-fcf6-3423d4caf13a@ish.com.au>
References:  <ff8307f6-1264-30ec-1ef8-ed3b0a18dd84@ish.com.au> <DFFE2BFC-1D53-457D-A4C3-633418D3690D@erdgeist.org> <0f5cae7e-7de3-2617-fcf6-3423d4caf13a@ish.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56CAE974.4050508>