Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jan 2021 20:12:40 -0800 (PST)
From:      Don Lewis <truckman@FreeBSD.org>
To:        Yasuhiro Kimura <yasu@utahime.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Getting /usr/src to match specific git hash?
Message-ID:  <tkrat.211ad37722d23bf4@FreeBSD.org>
In-Reply-To: <20210124.130805.532159532765637026.yasu@utahime.org>
References:  <20210124035852.GA73653@troutmask.apl.washington.edu> <20210124.130805.532159532765637026.yasu@utahime.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 24 Jan, Yasuhiro Kimura wrote:
> From: Steve Kargl <sgk@troutmask.apl.washington.edu>
> Subject: Getting /usr/src to match specific git hash?
> Date: Sat, 23 Jan 2021 19:58:52 -0800
> 
>> Suppose one has an empty /usr/src.
>> 
>> Suppose further that one had to re-install a 32-bit
>> i386-*-freebsd with the 24 Dec 2020 image available
>> from freebsd.org.
>> 
>> uname -a for the booted kernel shows
>> 
>> % uname -a
>> FreeBSD mobile 13.0-CURRENT FreeBSD 13.0-CURRENT #0 \
>> 3cc0c0d66a0-c255241(main)-dirty: Thu Dec 24 05:43:23 UTC 2020 \
>> root@releng1.nyi.freebsd.org:/usr/obj/usr/src/i386.i386/sys/GENERIC i386
>> 
>> How does one use git to pull the exact sources that match
>> this specifc kernel?
> 
> cd /usr
> git clone https://git.freebsd.org/src.git
> cd src
> git checkout 3cc0c0d66a0

And don't take the git warning about having a detached HEAD as a
criticism.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?tkrat.211ad37722d23bf4>