Date: Tue, 17 Sep 2024 20:23:59 +0000 From: Shawn Webb <shawn.webb@hardenedbsd.org> To: Craig Leres <leres@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: How to create a poudriere jail for a specific git hash of 15.0-CURRENT? Message-ID: <7z372i6stdyd74yqwivusj6ag3ow7kjhzgz4dg4aalsnyctk2z@vzlz2i52srxc> In-Reply-To: <e5e61b1a-ddda-4fe2-95bf-2063fd0a8415@freebsd.org> References: <07d3973a-ff48-4f99-bdad-296ef73a0d45@freebsd.org> <uyob5cs3mhqid2icxecbvlkslnciaktp3uxhlly5apqvogm5mp@oxiiv75a5xzc> <e5e61b1a-ddda-4fe2-95bf-2063fd0a8415@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--pyt4w5dpxnkpovgn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 17, 2024 at 12:55:24PM UTC, Craig Leres wrote: > On 9/17/24 11:09, Shawn Webb wrote: > > On Tue, Sep 17, 2024 at 11:00:40AM UTC, Craig Leres wrote: > > > which I assume uses the most current hash. > > >=20 > > > Looking at the -m flag I suppose I could clone 15-CURRENT, "git check= out > > > a5a965d75934", and then use -b -m src=3Dpath? Is that my best option? > > That's exactly how I do it. Though, using `-m src=3D...` requires one to > > do a buildworld first: > >=20 > > $ cd /data/src > > $ git clonessh://anongit@git.freebsd.org/src.git freebsd > > $ cd freebsd > > $ git reset --hard a5a965d75934 > > $ make -sj$(sysctl -n hw.ncpu) buildworld > > $ sudo poudriere jail -c -m src=3D/data/src/freebsd -j current -p local >=20 > It worked for me without the buildworld. I did use the -b flag: >=20 > -b Build the source provided with the -m src=3Dpath option. >=20 > To wrap up here's what I did: >=20 > zfs create -o mountpoint=3D/usr/src/15-CURRENT -o compress=3Dlz4 > tank/15-CURRENT > cd /usr/src > git clone https://git.freebsd.org/src.git 15-CURRENT > cd 15-CURRENT > git checkout a5a965d75934 > poudriere jail -x -c -j pfsense2403 -a arm64.aarch64 -m > src=3D/usr/src/15-CURRENT -b Oh, cool! It has been a while since I looked at the manual page for poudriere-build. I didn't know that option existed. I might just use -b in the future. Thanks for the hint! --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD Tor-ified Signal: +1 303-901-1600 / shawn_webb_opsec.50 https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A= 4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --pyt4w5dpxnkpovgn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmbp5VgACgkQ/y5nonf4 4fqw+g/+IIhHmWJtpktwSqxdmTZgnR72clYkL3QXOh+bU980uV76AuLwn20Tde4F r6y3GrBte7ipGwvVATJQ8fzYzLz3rXQeOrtpAHh1cY6W6Nq6Snssp9Z8d12aCuq2 sew/Gg2BE7tQVn3uARtP6fntuC8AxjSO3W+KTTAMV28RYdM86gTGJADxS/DcEbmQ bf8DhhAy8+Fvq3bkuTxj3YXnP3iy0E3Aw2lmNsqHu7vqI6hwjmSEoMyIvIIo6P4I W7hasskU0REOhqbjzmFV/pLwKcn7d8wHRFJ3U03EGR9Yc+W0I/RgX55Ke3MQ03uH VsGkVxp9mtYkmkmA9JF620BZo9UyrbfqZMypVcfO+UoidRKmK0E5KleThkvHIN+Y ht+jSck+g0+ftGndnbIAd1fUEgc57SOG/o1xDLov82Aw/OZRKmMyWOkVBHz26TfX GUzYR0MPT3kKLMSo+UtSeUMqUaP3y08NihOFUPBMZPFaKnDAN/Ke+InJHDptsTCy /Na/N1soffTj3NOceesxGylzAmOjvSir/tUHvurqIqFnOiSmhgqc2aPT6WuJVjgJ JeZqP2mRfAUV1S1dEcowHaFTmNwyofgJ8dqaSjBDpVbV7gjwXoojNsVI97jVi81T 97y7p2evoU0oNpt1Umvqjt+M8xUOd6GwmTmmtbE3ycgEyLNNnJs= =uGjY -----END PGP SIGNATURE----- --pyt4w5dpxnkpovgn--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7z372i6stdyd74yqwivusj6ag3ow7kjhzgz4dg4aalsnyctk2z>