Date: Wed, 16 Apr 2014 23:11:33 -0400 (GMT-04:00) From: John <aqqa11@earthlink.net> To: freebsd-questions@freebsd.org Subject: Re: where does uname get version number? Message-ID: <23956906.1397704294200.JavaMail.root@elwamui-hybrid.atl.sa.earthlink.net>
next in thread | raw e-mail | index | archive | help
-----Original Message----- >From: Trond Endrest=C3=B8l <Trond.Endrestol@fagskolen.gjovik.no> >Sent: Apr 16, 2014 3:59 AM >To: John <aqqa11@earthlink.net> >Cc: freebsd-questions@freebsd.org >Subject: Re: where does uname get version number? > >On Wed, 16 Apr 2014 03:28-0400, John wrote: > >> After a rocky upgrade from 9.1-RELEASE(-p10) to 9.2-RELEASE, all files I= checked are now in 9.2-RELEASE-p4. For example: >>=20 >> /usr/src/sys/conf/newvers.sh contains: >>=20 >> TYPE=3D"FreeBSD" >> REVISION=3D"9.2" >> BRANCH=3D"RELEASE-p4" >>=20 >> /etc/hosts contains: >>=20 >> # $FreeBSD: release/9.2.0/etc/hosts 109997 2003-01-28 21:29:23Z dbaker $ >>=20 >> and the kernel contains the new version: >> =20 >> # strings /boot/kernel/kernel | grep RELEASE|grep 9 >> @(#)FreeBSD 9.2-RELEASE-p4 #0: Tue Apr 8 18:08:22 UTC 2014 >> FreeBSD 9.2-RELEASE-p4 #0: Tue Apr 8 18:08:22 UTC 2014 >> 9.2-RELEASE-p4 >>=20 >> However, uname somehow shows the wrong version: >>=20 >> # uname -a >> FreeBSD localhost.localdomain 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825= : Tue Dec 4 09:23:10 UTC 2012 root at farrell.cse.buffalo.edu:/usr/obj= /usr/src/sys/GENERIC amd64 >>=20 >> So where does uname get the version number from? Which file(s) might no= t have been upgraded? Thank you! > >newvers.sh generates /usr/obj/usr/src/sys/$KERNEL/vers{ion,.c} during=20 >buildkernel. > >Prior to running "make -D NO_CLEAN buildworld buildkernel" I always=20 >run "rm /usr/obj/usr/src/sys/$KERNEL/vers*" thus forcing these files=20 >to be regenerated with the correct information. > >If you want to keep the build count stored in the=20 >/usr/obj/usr/src/sys/$KERNEL/version file, just run=20 >"rm /usr/obj/usr/src/sys/$KERNEL/vers.?". > Thank you! Sorry I should mention, I never compiled kernel, I just upgrade= d from RELEASE to RELEASE. I mentioned that newvers.sh in order to show th= at the upgrade appeared to be successful, because all these files that cont= ains the version number now show the correct new version (9.2-RELEASE-p4). = Yet somehow uname shows the wrong old version (9.1-RELEASE #0). So want t= o know where does uname obtained the version number.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?23956906.1397704294200.JavaMail.root>