From owner-freebsd-questions@FreeBSD.ORG Mon Mar 22 03:40:11 2010 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 43E101065670 for ; Mon, 22 Mar 2010 03:40:11 +0000 (UTC) (envelope-from aiza21@comclark.com) Received: from avmxsmtp1.comclark.com (avmxsmtp1.comclark.com [202.69.191.115]) by mx1.freebsd.org (Postfix) with ESMTP id B2E608FC20 for ; Mon, 22 Mar 2010 03:40:10 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvUcAPaDpkvKRa39OWdsb2JhbAAHh1eTZwEBAQE3BroShH0Egxw X-IronPort-AV: E=Sophos;i="4.51,285,1267372800"; d="scan'208";a="10549534" Received: from unknown (HELO [10.0.10.3]) ([202.69.173.253]) by avmxsmtp3.comclark.com with ESMTP; 22 Mar 2010 11:40:08 +0800 Message-ID: <4BA6E696.4040901@comclark.com> Date: Mon, 22 Mar 2010 11:40:06 +0800 From: Aiza User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Mark Shroyer References: <4BA5AA53.5030503@comclark.com> <4BA69566.2040504@markshroyer.com> <4BA6B80F.7050806@comclark.com> <4BA6CB8B.8070309@markshroyer.com> In-Reply-To: <4BA6CB8B.8070309@markshroyer.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: ezjail 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: Mon, 22 Mar 2010 03:40:11 -0000 >> I found the man ezjail-admin has this format >> ezjail-admin install -h file:// Where -h file:// means get the >> binaries from the host system the jails are running on. Am I correct? > > Yes, according to the man page. I haven't tried it yet myself, since I > set up my basejail before this option was available. > Well I tried it. The man page does not explain it clearly. What the -h really means is the -h file:// is the location for the release-8.0/base/ files. These files are not part of the base release directory tree that are part of the running system. They are only on the .iso install image such as the disc1.iso. I mounted the Release 8.0 disc1 install cd and changed into directory cd /cdrom/8.0-RELEASE and issued ezjail-admin install -h file:// it ran creating 3 jails, /usr/jails/basejail, /usr/jails/newjail, /usr/jails/flavours. This is not the same as copying the binaries from the host system. Next step is to ID directory names in the basejail and recreate basejail using the cpdup command to copy the host binaries. I see 2 questionable directories in the basejail, boot and rescue. Can I remove them from the basejail?