What's the #-number from uname -a?

Dan Nelson dnelson at allantgroup.com
Mon Apr 16 08:25:01 UTC 2007


In the last episode (Apr 15), Pieter de Goeje said:
> On Sunday 15 April 2007, Dan Nelson wrote:
> > In the last episode (Apr 15), Roger Olofsson said:
> > >  Yesterday I csup:ed 2 machines to latest using same cvsup-server
> > >  for both.  After the standard procedure of doing:
> > >
> > >  make buildworld
> > >  make buildkernel
> > >  make installkernel
> > >  reboot
> > >  make installworld
> > >
> > >  ..on both machines, one says 'FreeBSD 6.2-STABLE #2' and the other says
> > >  'FreeBSD 6.2-STABLE #6'.
> > >
> > >  What does the number after the #-sign mean?
> >
> > It's the number of times you have rebuilt your kernel.  The value is
> > stored in /usr/src/sys/<arch>/<kernelname>/version.
>
> I think you meant /usr/obj/usr/src/sys/<kernelname>/version. If you
> wipe /usr/obj, the number will be reset.

Actually, I meant /usr/src/sys/<arch>/compile/<kernelname>/version
since I still build my kernels the "old" way.  It also means that the
version file never gets deleted.  After ~10 years on this filesystem,
I'm up to #434 :)

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list