From nobody Wed Aug 20 18:40:17 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4c6ZxF0f6cz64prW for ; Wed, 20 Aug 2025 18:39:29 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (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 (2048 bits) client-digest SHA256) (Client CN "pelorus.zefox.org", Issuer "pelorus.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c6ZxD4b2Zz3DSs for ; Wed, 20 Aug 2025 18:39:28 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Authentication-Results: mx1.freebsd.org; none Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.18.1/8.18.1) with ESMTPS id 57KIeIxD057240 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 20 Aug 2025 11:40:18 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.18.1/8.18.1/Submit) id 57KIeIfe057239; Wed, 20 Aug 2025 11:40:18 -0700 (PDT) (envelope-from fbsd) Date: Wed, 20 Aug 2025 11:40:17 -0700 From: bob prohaska To: Marcin Cieslak Cc: freebsd-current@freebsd.org Subject: Re: uname -v does not report an n-number Message-ID: References: <8sr90302-s4s0-1nr6-p9o7-2p9rs5n1s7or@fncre.vasb> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8sr90302-s4s0-1nr6-p9o7-2p9rs5n1s7or@fncre.vasb> X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4c6ZxD4b2Zz3DSs On Wed, Aug 20, 2025 at 04:08:04PM +0000, Marcin Cieslak wrote: > On Wed, 20 Aug 2025, bob prohaska wrote: > > > I've an old Pi2 v1.1 which has been tracking -current for some time. > > > > uname -v reports > > bob@www:/usr/src % uname -v > > FreeBSD 15.0-PRERELEASE #100 main-325e0b4c1a68: Mon Aug 18 15:23:41 PDT 2025 bob@www.zefox.org:/usr/obj/usr/src/arm.armv7/sys/GENERIC > > bob@www:/usr/src % > > > > Can the older machine be persuaded to display the sequence number? > > Obviously I could reinstall, but I'm curious to see how long the > > original installation can last. > > > > Thanks for reading, > > > > bob prohaska > > On the machine where you build your kernel for "www": > > git -C /usr/src rev-parse --is-shallow-repository > > If your repository is shallow, it will not get an "n" number. > That's the problem, the reply is "true". > Whether having this is worth extra gigabytes on disk (git counts the number > of commits "since the beginning"), it's up to you. The machine has only a 32GB disk, df reports: Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/da0s2a 35532636 11410120 21279908 35% / devfs 1 0 1 0% /dev /dev/da0s1 51088 17348 33740 34% /boot/msdos so it appears I have about 20 GB available. IIRC it's possible to "set a depth", could it be set to some small number, like 1, 2 or maybe 3, so I get the N-number without all the baggage? Thanks for writing! bob prohaska > If you convert the repository to have all the commits, you need to rebuild the kernel. > Marcin