:: Re: [DNG] usr-merge
Top Page
Delete this message
Reply to this message
Author: karl
Date:  
To: dng
Subject: Re: [DNG] usr-merge
Didier:
> Le 19/11/2025 à 23:06, karl@??? a écrit :
> > I have always thought it was strange to have the kernel in /boot and
> > its modules in /lib/modules, apart from space issues, wouldn't it be
> > more straigthforward to place the kernel and its modules in /boot.
> > Then you could use the same kernel(+modules) for multiple root fs.

...
>     Second, kernel ≠ boot; the kernel lives until power-off and does
> many other things than loading modules. And modules can be loaded and
> removed anytime /after/ the kernel has mounted some rootfs.


I don't understand your point. The kernel and the modules are related,
kernel A can only (mostly) use modules from /lib/modules/A, so there
is a one-to-one relationship between them.

If you boot kernel A and have a few root fs to choose from, then, in
the current scheme, you have to copy out /lib/modules/A to each and
every such fs (unless you mount it separately). That results in multiple
copies of the same modules across multiple partitions. That has nothing
to do with if kernel != boot or not and when modules are loaded and
unloaded.

Regards,
/Karl Hammar