tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Path to kmods

On Wed, Nov 12, 2008 at 05:27:30PM +0100, Hubert Feyrer wrote:
> On Wed, 12 Nov 2008, Antti Kantee wrote:
> >I like the Linux naming.  Before your post, I was planning to suggest
> >/modules, but thought the name is too generic.
> OK, another idea... maybe that's a bit radical, but so what:
> Currently, /netbsd is "the stuff that is the kernel". To switch to a new 
> kernel (for testing, or whatever), I have to replace /netbsd, e.g. by a 
> symlink to a new/testing kernel, or by replacing the actual file.
> With a modularized kernel, "the stuff that is the kernel" is basically the 
> actual kernel plus modules.
> So, I wonder if we should change /netbsd to a directory that has the 
> actual kernel plus the modules that are associated with that specific 
> (actual) kernel.
> To switch to a new "kernel", I'd have /netbsd either as simple directory 
> or as symlink to something that has my own naming scheme, just as now.
> The choice of the naming scheme would be left to the user, and we could 
> assume to be the "kernel"(-stuff) still be in /netbsd.

This looks good to me. If we boot a plain file it is a monolitic kernel, if
we boot a directory it looks like:

Next move the modules from the base set to the kernel set(s) and have create full kernel+modules set(s) on " kernel=XXX".

That way a kernel switch would be (in both cases):

        mv /netbsd /netbsd.old
        tar zxf .../binary/sets/kern-XXX.tgz

Juergen Hannken-Illjes - - TU Braunschweig 

Home | Main Index | Thread Index | Old Index