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

[-- Attachment #1 --]
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=/usr/local/poudriere/jails/somejail"?
> 
> 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.
> 
> -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=i386
    MACHINE=i386
    MACHINE_ARCH=i386
This is always added:
    USE_PACKAGE_DEPENDS=yes
    BATCH=yes
    WRKDIRPREFIX=/wrkdirs

2. It updates /etc/login.conf for default class so `uname` is correct:

amd64 host i386 jail:

:setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES,UNAME_r=8.3-RELEASE,UNAME_v=FreeBSD
8.3-RELEASE,OSVERSION=803000,UNAME_p=i386,UNAME_m=i386:\

amd64 jail:

:setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES,UNAME_r=8.3-RELEASE,UNAME_v=FreeBSD
8.3-RELEASE,OSVERSION=803000:\


3. cap_mkdb /etc/login.conf is ran

4. ld paths updated in jail: /sbin/ldconfig -m /lib /usr/lib /usr/lib/compat

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/rollback




-- 
Regards,
Bryan Drewery


[-- Attachment #2 --]
-----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-----

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