Re: Smp kernel version comparison
Lars Ellenberg <[email protected]> Fri, 22 Oct 2004 11:51:47 +0200
| Newsgroups | gmane.linux.suse.fou4s.devel |
|---|---|
| Message-ID | <[email protected]> |
/ 2004-10-22 10:00:05 +0200
\ Bjorn Tore Sund:
>
> Hi,
>
> Something is broken in the kernel version comparison in fou4s, showing
> up after the latest kernel update in SuSE 9.1 on smp machines. Yes,'
> the machine is running from the installed kernel.
>
> bjornts@barnabas(9:44)104> uname -a
> Linux barnabas 2.6.5-7.111-smp #1 SMP Wed Oct 13 15:45:13 UTC 2004 i686
> i686 i386 GNU/Linux
> bjornts@barnabas(9:45)105> rpm -qa | grep -i kernel
> kernel-smp-2.6.5-7.111
> kernel-source-2.6.5-7.111
> kernel-docs-2.6.5-7.111
> bjornts@barnabas(9:51)110> cat /proc/version
> Linux version 2.6.5-7.111-smp (geeko@buildhost) (gcc version 3.3.3 (SuSE
> Linux)) #1 SMP Wed Oct 13 15:45:13 UTC 2004
well, it is heuristic anyways, and it could be improved.
run with fou4s -vv --checkd , to see what I mean, or look at
getKernelVersion() (line 1044)
and the kernel related code of checkDeleted (line 944)
rpm -qf /boot/vmlinuz gives something ugly, e.g. k_deflt on older boxes
and kernel-smp-2.6.5-7.111 on your box, so the package name sometimes contains
the additional information, but we cannot rely on that.
and the uname -a (resp. /proc/version) does sometimes not contain the
release information, so this is not reliable either.
therefore Markus compares the buildtime of the currently run kernel
("Wed Oct 13 15:45:13 UTC 2004" in your case, as listed above)
with the buildtime of the kernel package
rpm -qf --qf "%{BUILDTIME}" /boot/vmlinuz
[what does this say on your box? ]
and when they are not within one day, it gives you a hint to reboot.
> ---------- Forwarded message ----------
> Date: Fri, 22 Oct 2004 02:05:34 +0200 (CEST)
> From: Cron Daemon <[email protected]>
> To: [email protected]
> Subject: Cron <root@barnabas> fou4s --auto --checkfou4s ; fou4s -in
>
>
> The running kernel (2.6.5-7.111-smp) is different from installed kernel
> (2.6.5-7.111). You must reboot your machine to make the kernel update
> effective.
>
> The running kernel (2.6.5-7.111-smp) is different from installed kernel
> (2.6.5-7.111). You must reboot your machine to make the kernel update
> effective.
lge
--