From owner-freebsd-chat@FreeBSD.ORG Mon Aug 13 09:27:14 2007 Return-Path: Delivered-To: freebsd-chat@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFCBC16A41A for ; Mon, 13 Aug 2007 09:27:14 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2001:1b20:1:3::1]) by mx1.freebsd.org (Postfix) with ESMTP id 1B94513C457 for ; Mon, 13 Aug 2007 09:27:13 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (wxklmr@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l7D9R6VD013938; Mon, 13 Aug 2007 11:27:12 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l7D9R6LI013937; Mon, 13 Aug 2007 11:27:06 +0200 (CEST) (envelope-from olli) Date: Mon, 13 Aug 2007 11:27:06 +0200 (CEST) Message-Id: <200708130927.l7D9R6LI013937@lurza.secnetix.de> From: Oliver Fromme To: freebsd-chat@FreeBSD.ORG, Josh Paetzel In-Reply-To: <20070810181342.GG83613@tcbug.org> X-Newsgroups: list.freebsd-chat User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Mon, 13 Aug 2007 11:27:12 +0200 (CEST) Cc: Subject: Re: Creating and copying jail images X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-chat@FreeBSD.ORG, Josh Paetzel List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Aug 2007 09:27:14 -0000 Josh Paetzel wrote: > Problem: I need to create a jail image that I can deploy on multiple > servers, ala a generic apache jail or postgresql jail or whatever. I > need to be able to simply explode this image in to a directory and > have it work, I'd also like to be able to compress the image because > it occasionally has to go over lower-speed WAN links. > > Here are the tools that I've investigated and the problems I've had > with them: > > tar, cpio, pax: All 3 of these tools have problems with various > combinations of meta-data, links, and things like device nodes. What exactly is the problem with tar (bsdtar)? It handles hard links, file flags (be sure to specify the -p option when extracting) and everything else that's necessary. By the way, you don't need device nodes anymore because of DEVFS. I think device nodes outside of DEVFS don't work anymore anyway, so they're useless. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Software gets slower faster than hardware gets faster." -- Niklaus Wirth