Re: pkgbase poudriere jails

From: Mark Millard <marklmi_at_yahoo.com>
Date: Mon, 06 Jul 2026 02:26:23 UTC
On 7/5/26 16:55, Alastair Hogge wrote:
> On 2026-07-06 06:52, Mark Millard wrote:
>> On 7/5/26 14:43, Alastair Hogge wrote:
>>> Hello all,
>>>
>>> How do I going about deploying and upgrading pkgbase poudriere jails?
>>> For custom 16-CURRENT jails, this is not problem, however, I would like
>>> 14.4 and 15.1 amd64 jails with FreeBSD-src.
>>>
>>> At the moment I would initiate a poudriere jail with:
>>> doas poudriere jail -cj 14_4-amd64-release -a amd64 -v 14 -f none  -m
>>> pkgbase=base_release_4 -U https://pkg.freebsd.org/
>>> doas poudriere jail -cj 15_1-amd64-release -a amd64 -v 14 -f none  -m
>>> pkgbase=base_release_1 -U https://pkg.freebsd.org/
>>
>> Why -v 14 for "15_1-amd64-release"?
> 
> Copy-paste error.
> 
>>> Considering all the information online, I am not even sure if that is
>>> correct. I was using pkgbase=latest, however that stopped working some
>>> weeks ago.
>>>
>>> --
>>> To good health
>>>
>>>
>>
>> Warning: my background is in poudriere-devel use, so that is the context
>> here. The context below is also UFS based.
> 
> The two best contexts I can think of for this thread.
> 
>> Note:
>> FreeBSD-src-sys is normally included in pkgbase poudriere-devel jails.
>> FreeBSD-src is not installed in such by poudriere-devel.
> 
> This is my understanding.
> 
>> First: 15.1-RELEASE poudriere-devel jail creation examples
>> (context where no qemu use is required, armv7 chroot/jail supported)
>> (also: my examples are from a root-account-already-in-use context):
>>
>>
>> # poudriere jail -c -jrelease-aarch64 -aaarch64 \
>>     -U https://pkg.freebsd.org
>>     -mpkgbase=base_release_1 \
>>     -v 15 \
>>     -X
>>
>> # poudriere jail -c -jrelease-armv7 -aarmv7 \
>>     -U https://pkg.freebsd.org \
>>     -mpkgbase=base_release_1
>>     -v 15 \
>>     -X
> 
> Ah yes! -c is what I need.

Two very different -c 's: one is for "create jail" and the other for pkg
to "chroot" into one of the jails.

> $ doas pkg-static -oOSVERSION=1501000 -c
> /exports/fafnir/poudriere/jails/15_1-amd64-release search -x FreeBSD-src
> kg-static: Warning: Major OS version upgrade detected.  Running "pkg
> bootstrap -f" recommended
> FreeBSD-src-15.1p1             System userland source code
> FreeBSD-src-sys-15.1p1         System kernel source code
> 
> $ doas pkg-static -oOSVERSION=1501000 -c
> /exports/fafnir/poudriere/jails/15_1-amd64-release install
> FreeBSD-src-15.1p1

Another option could have been:

     -r ⟨root directory⟩, --rootdir ⟨root directory⟩
             pkg will install all packages within the specified ⟨root
             directory⟩.

instead of:

     -c ⟨chroot path⟩, --chroot ⟨chroot path⟩
             pkg will chroot in the ⟨chroot path⟩ environment.

(I'm not sure that the man pages make clear when one is more appropriate
than the other when both are possible.)


It is not clear if poudriere(-devel) will automatically keep the
FreeBSD-src up to date for future upgrades of the jail. As far as I
know, poudriere(-devel) is not designed for handling things that it did
not put there in the first place.

> 
> Thanks!
> 
> 


-- 
===
Mark Millard
marklmi at yahoo.com