[ILUG] SuSE /boot files
junk_mail at iol.ie
Thu Jan 19 02:02:32 GMT 2006
Recently, Somebody Somewhere wrote these words
> On 18 Jan 2006, at 21:31, Declan Moriarty wrote:
> >If somebody there is running Suse, can you tell me
> >1. The o/p of uname -r
> You were just a teensy bit non specific about versions, so:
> SuSE uname -r
> 9.3 188.8.131.52-20a-default
> 9.2 2.6.8-24.11-smp
> 9.1 2.6.5-7.95-default
> SLES 9 2.6.5-7.97-smp
> >2. What /boot/version.h says
> >3. What /boot/vmlinuz.autoconf.h says.
> Neither of these files exists in any of the above versions of SuSE as
> >I'm running linux from scratch here
> I'm sorry for your troubles.
Thanks for that
/Leaping to defence.
There's nothing wrong with LFS - it just makes you work, and
Here's the bit of the Makefile
# SuSE has the version.h and autoconf.h headers for the current
# in /boot as /boot/vmlinuz.version.h and
# Check these first to see if they match the running kernel.
BOOTVERSION_PREFIX = /boot/vmlinuz.
V := $(shell if [ -f $(BOOTVERSION_PREFIX)version.h ]; then \
grep UTS_RELEASE $(BOOTVERSION_PREFIX)version.h | \
cut -d' ' -f3; fi)
HEADERFROMBOOT := 1
GETCONFIG := MAKEFILES=$(shell pwd)/.config
HAVECONFIG := y
These are in fact in <kernel-source>/include/linux, i.e version.h
and autoconf.h. Autoconf.h is the kernel config in define
statements (?) and version.h is like this
#define UTS_RELEASE "184.108.40.206-grsec-05"
#define LINUX_VERSION_CODE 132622
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
So I can get away with just copying version.h to
/boot/vmlinuz.version.h my puny script grokking skills inform me.
They seem to be looking for the first line of version.h.
With best Regards,
More information about the ILUG