:: Re: [DNG] usr-merge
Top Page
Delete this message
Reply to this message
Author: katphish
Date:  
To: dng
Subject: Re: [DNG] usr-merge
On Wed, 19 Nov 2025 23:06:40 +0100 (CET)
karl@??? wrote:

> g4sra:
> ...
> > Are the kernel modules now also pushed under /usr/lib ?
> ...
>
> 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.


Not so strange really. The kernel used to be statically compiled. Dynamically
loading/linked os/admin libraries (used to) go into /lib so when dynamically
loaded modules came on the scene /lib was the logical place. An init file
was also developed to contain a small loader filesystem with modules
specifically needed at boot, to load the critical modules needed for the OS
and filesystems, network cards, etc.

In your scenario, a static kernel would work fine or a fully fleshed out
init file. /lib/modules could even be a read-only mounted filesystem matching
the kernel. Most systems link /lib/modules to /lib/modules-<kernel-version>
anyway.