Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Sep 2024 12:55:24 -0700
From:      Craig Leres <leres@freebsd.org>
To:        Shawn Webb <shawn.webb@hardenedbsd.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:  <e5e61b1a-ddda-4fe2-95bf-2063fd0a8415@freebsd.org>
In-Reply-To: <uyob5cs3mhqid2icxecbvlkslnciaktp3uxhlly5apqvogm5mp@oxiiv75a5xzc>
References:  <07d3973a-ff48-4f99-bdad-296ef73a0d45@freebsd.org> <uyob5cs3mhqid2icxecbvlkslnciaktp3uxhlly5apqvogm5mp@oxiiv75a5xzc>

next in thread | previous in thread | raw e-mail | index | archive | help
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

Also note that I'm cross-compiling (my build server is amd64).

		Craig



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e5e61b1a-ddda-4fe2-95bf-2063fd0a8415>