Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jan 2021 10:05:38 -0800
From:      "Simon J. Gerraty" <sjg@juniper.net>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        <freebsd-current@freebsd.org>, <sjg@juniper.net>
Subject:   Re: Getting /usr/src to match specific git hash?
Message-ID:  <18487.1611511538@kaos.jnpr.net>
In-Reply-To: <20210124035852.GA73653@troutmask.apl.washington.edu>
References:  <20210124035852.GA73653@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Steve Kargl <sgk@troutmask.apl.washington.edu> wrote:
> 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?

As others have  described,  you can clone and 'git checkout 3cc0c0d66a0'
but that "-dirty" above implies the tree had changes, so you cannot
reproduce "the exact sources".

--sjg



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