Re: How to create a poudriere jail for a specific git hash of 15.0-CURRENT?
- In reply to: Craig Leres : "Re: How to create a poudriere jail for a specific git hash of 15.0-CURRENT?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 17 Sep 2024 20:23:59 UTC
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. > > > > > > Looking at the -m flag I suppose I could clone 15-CURRENT, "git checkout > > > a5a965d75934", and then use -b -m src=path? Is that my best option? > > That's exactly how I do it. Though, using `-m src=...` requires one to > > do a buildworld first: > > > > $ 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=/data/src/freebsd -j current -p local > > It worked for me without the buildworld. I did use the -b flag: > > -b Build the source provided with the -m src=path option. > > To wrap up here's what I did: > > zfs create -o mountpoint=/usr/src/15-CURRENT -o compress=lz4 > 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=/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! -- 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/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc