Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jan 2021 11:05:23 -0500
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        Warner Losh <imp@bsdimp.com>
Cc:        Jeffrey Bouquet <jbtakk@iherebuywisely.com>, Steve Kargl <sgk@troutmask.apl.washington.edu>, Yasuhiro Kimura <yasu@utahime.org>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: Getting /usr/src to match specific git hash?
Message-ID:  <20210124160523.ygdwlgegk6nrwfm4@mutt-hbsd>
In-Reply-To: <CANCZdfppxBu9DbA4yH9rWSg8fW0YeATx0guihGKtEGEi_9y3jw@mail.gmail.com>
References:  <20210124041403.GB73653@troutmask.apl.washington.edu> <E1l3f52-0004th-MB@rmmprod05.runbox> <CANCZdfppxBu9DbA4yH9rWSg8fW0YeATx0guihGKtEGEi_9y3jw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--gjkq34kgt3vrncfa
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

--=20
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/Sha=
wn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc

--gjkq34kgt3vrncfa
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmANmsEACgkQ/y5nonf4
4fq/lA//RuyxQl9WEOi4mPYFufPFX+8RZpMcTvqBOP3koO6qr9ONdgUtIS254Nkm
lTflwSqjRYuQqaSdPITJ2feCUzjdB58X5gqJWJc3zdFj8U+Xw+4wHAF6BaWLBVH8
TO4/2IgT882LTqRaKzz6tnOAk5g3JhjREo+FX2idGUcJUYOIV5zhMVIIlmsE8Iq6
4AMlArcvKS/IbnpQ+f4Cho6gdZwCfmnhEGZYgTCM5iI2p5SyEuDC+W4VICZMZ6wK
k8QgLRm3ws9Pqn533IQhA/I5eLvFUS0yITFRiZwloWwAKTCXd2y/6amp9qNy184s
GuEf3ay4EBNyrh3dk84zyAlURo/JlS+mE02AYHxn25qc4JwnYUQtW18Kh/D62XkC
eH7aR7T4FbubcPOymfAPJSBrtR/C+wyMXC29AstsQl231qzFKIESqayxoUYbvEb4
jrL8bISmokggOrNS5IjsU+UCPNQrkJM1EUcbNU9nW0gJr4N3A+kVsEGtj6PAr9NT
y8QcGk/TwvlM318vjv1tylP/gWAlw7hHHdBj1UKFx3ZkUwvPTGesVB+81ktN/6h0
HlXU3xVFA2iODqJMhkEnxL6wQp6PMcHXz4A5vQtE5USgHsaoYVycErQjhQiJkmrO
HhDrCrZytR2exwQ48TY7OWzkZJnXUv1pnn9fDYWfmsBS6X9jC9s=
=LgMw
-----END PGP SIGNATURE-----

--gjkq34kgt3vrncfa--



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