Date: Sun, 5 Jul 2026 19:26:23 -0700 From: Mark Millard <marklmi@yahoo.com> To: Alastair Hogge <agh@riseup.net> Cc: freebsd-pkgbase@freebsd.org Subject: Re: pkgbase poudriere jails Message-ID: <e875e3c2-4a46-4f59-a343-b1995db5cf09@yahoo.com> In-Reply-To: <bdcd3974dcdf54be5331cc4b4aa0be98@riseup.net> References: <34dd76dc0989a17547b1ceea94fefae4@riseup.net> <b606744c-1773-4318-8c4b-894c9ae52eeb@yahoo.com> <bdcd3974dcdf54be5331cc4b4aa0be98@riseup.net>
index | next in thread | previous in thread | raw e-mail
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.comhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e875e3c2-4a46-4f59-a343-b1995db5cf09>
