Re: pkgbase poudriere jails

From: Alastair Hogge <agh_at_riseup.net>
Date: Sun, 05 Jul 2026 23:55:57 UTC
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.
$ 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

Thanks!