Autor: Marc Shapiro Data: Para: dng Assunto: Re: [DNG] /lib/modules on separate partition?
On 11/20/22 14:31, Gregory Nowak wrote: > On Sat, Nov 19, 2022 at 08:55:06PM -0800, Marc Shapiro via Dng wrote:
>> Is there a way to have the system mount /lib/modules immediately after
>> mounting / and before loading the remaining kernel modules? Or even better,
>> is there a way to have all modules that should be loaded during the boot
>> process come from the initrd?
> You already got the answer on how to include all needed modules in the
> initrd. As for mounting /lib/modules right after /, add a line similar
> to the following in /etc/fstab right below the entry for /:
>
> /dev/group-lvm /lib/modules ext4 defaults 0 1
>
> This should cause /lib/modules to be mounted right after /. Replace
> /dev/group-lvm with the volume containing /lib/modules. Also adjust
> the file system type to whatever fs you're using.
That was the first thing that I tried, since it would be the easiest and
not required any additional steps when a new kernel is installed.
Unfortunately, /lib/modules still mounts along with all the rest of my
partitions, after the modules are loaded.