Subject: Re: passing in the booted kernel name...?
To: None <>
From: Soren S. Jorvang <>
List: tech-kern
Date: 01/08/1999 23:18:51
On Fri, Jan 08, 1999 at 10:56:18PM +0100, wrote:
> said:
> > How about an MD5 of the kernel image? 
> Some ID would be good, but a checksum of the image is not easy:
> -the bootcode would have to calculate it, which causes bloat
> -the started kernel must check it, but probably can't do this
>  before it modified some of it's global variables
> It it very easy for a user program to check whether the
> running kernel is what it assumes: compare `uname -v` to
> `strings /netbsd | grep NetBSD` or so, thus I don't thing
> it is worth to spend bootloader or kernel code for it.

I was thinking of some more general way of accomplishing
what machdep.booted_kernel does, i.e. mostly where to
point kvm_mkdb at.

I agree that version[] is probably safe to use, so perhaps
simply checking all of /netbsd* for a version string matching
the running kernel's would be better than trying to improve