uname reports wrong kernel version number

krad kraduk at gmail.com
Thu May 29 07:02:28 UTC 2014


The obvious answer is an installkernel has been done but no reboot
performed. Looks at the modification time and compare it to uptime. Its not
a dead cert as some tricky person could have mangled the kernels
timestamps, but its a good indication



On 29 May 2014 05:20, Michael Sierchio <kudzu at tenebras.com> wrote:

> I've seen threads with this topic before, but with no satisfactory answer.
>
> I ran freebsd-update fetch install, then installed a new kernel, then
> rebooted.
>
> > strings /boot/kernel/kernel | grep '9.1-RELEASE'
> @(#)FreeBSD 9.1-RELEASE-p13 #0: Tue May 27 17:49:30 UTC 2014
> FreeBSD 9.1-RELEASE-p13 #0: Tue May 27 17:49:30 UTC 2014
> 9.1-RELEASE-p13
>
> > sysctl kern.bootfile
> kern.bootfile: /boot/kernel/kernel
>
> > uname -a
>
> FreeBSD pvpn.ny.pivotallabs.com 9.1-RELEASE-p8 FreeBSD 9.1-RELEASE-p8
> #2: Mon Nov 18 20:24:53 UTC 2013
> root at net6501-factory.sf.pivotallabs.com:
> /usr/src/sys/i386/compile/NET6501-IPSEC
>  i386
>
> Which was definitely the old kernel, but not the running one... hrm.
>
> Any insights?
>
> - M
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
>


More information about the freebsd-questions mailing list