From owner-freebsd-pkg@FreeBSD.ORG Tue Jul 23 11:28:37 2013 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BC0C1AA8 for ; Tue, 23 Jul 2013 11:28:37 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A423728C3 for ; Tue, 23 Jul 2013 11:28:37 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6NBSbhn077518 for ; Tue, 23 Jul 2013 11:28:37 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6NBSbxR077516 for freebsd-pkg@freebsd.org; Tue, 23 Jul 2013 11:28:37 GMT (envelope-from bdrewery) Received: (qmail 2768 invoked from network); 23 Jul 2013 06:28:35 -0500 Received: from unknown (HELO ?10.10.0.24?) (freebsd@shatow.net@10.10.0.24) by sweb.xzibition.com with ESMTPA; 23 Jul 2013 06:28:35 -0500 Message-ID: <51EE68E0.6020601@FreeBSD.org> Date: Tue, 23 Jul 2013 06:28:32 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Kimmo Paasiala Subject: Re: Poudriere jails. References: In-Reply-To: X-Enigmail-Version: 1.5.1 OpenPGP: id=3C9B0CF9; url=http://www.shatow.net/bryan/bryan.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2KKJCDXOHXVUJONOUUVBF" Cc: freebsd-pkg@freebsd.org X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2013 11:28:37 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2KKJCDXOHXVUJONOUUVBF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 7/23/2013 5:09 AM, Kimmo Paasiala wrote: > Is there anything special about the jails that poudriere installs with > "poudriere jail -c"? Should I be able to use a pre-installed jail that > i have installed with "make installworld > DESTDIR=3D/usr/local/poudriere/jails/somejail"? >=20 > I'm asking this because if I could install and update the jails > without using "poudriere jail" command it would save lots of time > because I could just use the world I already have built for updating > the build host. >=20 > -Kimmo Yes, they have more done to them than just an install. I do plan to add a way to import an existing directory into poudriere and to have it finish initialization of it. 1. It sets up /etc/make.conf If host is amd64 and jail is i386, this is added: ARCH=3Di386 MACHINE=3Di386 MACHINE_ARCH=3Di386 This is always added: USE_PACKAGE_DEPENDS=3Dyes BATCH=3Dyes WRKDIRPREFIX=3D/wrkdirs 2. It updates /etc/login.conf for default class so `uname` is correct: amd64 host i386 jail: :setenv=3DMAIL=3D/var/mail/$,BLOCKSIZE=3DK,FTP_PASSIVE_MODE=3DYES,UNAME_r= =3D8.3-RELEASE,UNAME_v=3DFreeBSD 8.3-RELEASE,OSVERSION=3D803000,UNAME_p=3Di386,UNAME_m=3Di386:\ amd64 jail: :setenv=3DMAIL=3D/var/mail/$,BLOCKSIZE=3DK,FTP_PASSIVE_MODE=3DYES,UNAME_r= =3D8.3-RELEASE,UNAME_v=3DFreeBSD 8.3-RELEASE,OSVERSION=3D803000:\ 3. cap_mkdb /etc/login.conf is ran 4. ld paths updated in jail: /sbin/ldconfig -m /lib /usr/lib /usr/lib/com= pat 5. /etc/master.passwd generated in jail: pwd_mkdb -d ${JAILMNT}/etc/ -p ${JAILMNT}/etc/master.passwd 6. All of /usr/local/etc/poudriere.d/jails/{method,fs,version,mnt,arch} are added 7. If the jail is on ZFS, a @clean snapshot is required for clone/rollbac= k --=20 Regards, Bryan Drewery ------enig2KKJCDXOHXVUJONOUUVBF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJR7mjgAAoJEG54KsA8mwz5Gz4P/0Sm3mXpJ3hu54t2sjVRKHYs l73nFVy88qozgv6YESFkuAmzzj7n8mbKRehc5LE8a3013caoos+uW8godA30jSqk ehiQe/8fT6y92+MpapPCxK47ngJRNeqeHr2uK1Dg95qao24tHpTNc7DUvpsqVfWi 5UmxztUg9MyG+zkV45+me675YADC4dKicTEZasiMR1ko7zQy7oSXVm6WjVy5dcwF ZpMgkcK4bMc5LLyWgO2KQLulJXBnc2gdrb36uco7JowtooJr6cvhb3TR3qf41Dvi T/t4PoBUsT+jw1Tea9P3Jvn8M/KqRFtXZLfypUS2PCfC3yeomLJCDuyfyQtoXgg+ JC3bx211kxz+7yVSCSitGpPLsrkkdIb3vUlwfEXBsJbsPbbwcQUDW013ZHDe/5hd wYVttJCKBWMtU72mJrt+OAlBh7P/UeuklHDx618G8RNZDOO2u5rOXL8TdZBywYC+ 74saLMQZ5ImGxYrfrLNShUy7gFJKekn0yEHOGaIi2YmFz/rJ9LrXPFwauxk3YxaE JzpUhoP4GDqiM8GlbqFDH466tWsA45kgMuJatWoVtkLaAgvL/IEAVA01cTUIKK1F ivBWf0wxvoTD3BdaYiTMNhgZ+1UvHgsKBCtD9LndUzN+5ahgo1HRJq3Ikk+tAy+j BGRjfwefTkrpjL1vWFQ0 =ugvh -----END PGP SIGNATURE----- ------enig2KKJCDXOHXVUJONOUUVBF--