Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jul 2013 06:28:32 -0500
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Kimmo Paasiala <kpaasial@gmail.com>
Cc:        freebsd-pkg@freebsd.org
Subject:   Re: Poudriere jails.
Message-ID:  <51EE68E0.6020601@FreeBSD.org>
In-Reply-To: <CA%2B7WWSdvLb5VkCDZr_F33ROtKpc6cf5Od6NmwnGq=7e6cutdcg@mail.gmail.com>
References:  <CA%2B7WWSdvLb5VkCDZr_F33ROtKpc6cf5Od6NmwnGq=7e6cutdcg@mail.gmail.com>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51EE68E0.6020601>