[ILUG] SuSE /boot files
Declan Moriarty
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 2.6.11.4-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
> installed.
>
> >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
learn.
Here's the bit of the Makefile
# SuSE has the version.h and autoconf.h headers for the current
# kernel
# in /boot as /boot/vmlinuz.version.h and
# /boot/vmlinuz.autoconf.h.
# 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)
ifeq ($(V),"$(RUNNING_REL)")
HEADERFROMBOOT := 1
GETCONFIG := MAKEFILES=$(shell pwd)/.config
HAVECONFIG := y
endif
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 "2.6.14.3-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,
Declan Moriarty.
More information about the ILUG
mailing list