From owner-freebsd-current@freebsd.org Sun Jan 24 04:12:43 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 756064EB1DC for ; Sun, 24 Jan 2021 04:12:43 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DNfjR2wlrz4SF8; Sun, 24 Jan 2021 04:12:43 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from mousie.catspoiler.org (unknown [76.212.85.177]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: truckman) by smtp.freebsd.org (Postfix) with ESMTPSA id BD7B6F908; Sun, 24 Jan 2021 04:12:42 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Date: Sat, 23 Jan 2021 20:12:40 -0800 (PST) From: Don Lewis Subject: Re: Getting /usr/src to match specific git hash? To: Yasuhiro Kimura cc: freebsd-current@freebsd.org In-Reply-To: <20210124.130805.532159532765637026.yasu@utahime.org> Message-ID: References: <20210124035852.GA73653@troutmask.apl.washington.edu> <20210124.130805.532159532765637026.yasu@utahime.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=us-ascii Content-Disposition: INLINE X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2021 04:12:43 -0000 On 24 Jan, Yasuhiro Kimura wrote: > From: Steve Kargl > 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.