Getting /usr/src to match specific git hash?

Shawn Webb shawn.webb at hardenedbsd.org
Sun Jan 24 16:05:27 UTC 2021


On Sun, Jan 24, 2021 at 09:00:45AM -0700, Warner Losh wrote:
> On Sun, Jan 24, 2021, 6:05 AM Jeffrey Bouquet <jbtakk at iherebuywisely.com>
> wrote:
> 
> >
> >
> > On Sat, 23 Jan 2021 20:14:03 -0800, Steve Kargl <
> > sgk at troutmask.apl.washington.edu> wrote:
> >
> > > On Sun, Jan 24, 2021 at 01:08:05PM +0900, Yasuhiro Kimura wrote:
> > > > From: Steve Kargl <sgk at 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 at 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
> > > >
> > >
> > > Thank you.
> > >
> > > --
> > > Steve
> > > _______________________________________________
> > > freebsd-current at freebsd.org mailing list
> > > https://lists.freebsd.org/mailman/listinfo/freebsd-current
> > > To unsubscribe, send any mail to "
> > freebsd-current-unsubscribe at freebsd.org"
> >
> > Can this be put in /usr/src/UPDATING with an explanation of precisely how
> > each
> > of the git commands populates or repopulated the directories in /usr???
> >
> 
> It is in the mini primer I wrote, along with how to bisect and other useful
> things. This will migrate into the handbook once the doc tree converts to
> asciidoc (happening this weekend).
> 
> https://github.com/bsdimp/freebsd-git-docs/blob/main/mini-primer.md

I'm glad this is moving to FreeBSD's documentation. Following the
process of FreeBSD's migration to git has been a bit troublesome with
some docs somewhere other docs elsewhere.

Thanks,

-- 
Shawn Webb
Cofounder / Security Engineer
HardenedBSD

GPG Key ID:          0xFF2E67A277F8E1FA
GPG Key Fingerprint: D206 BB45 15E0 9C49 0CF9  3633 C85B 0AF8 AB23 0FB2
https://git-01.md.hardenedbsd.org/HardenedBSD/pubkeys/src/branch/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20210124/33985219/attachment.sig>


More information about the freebsd-current mailing list