:: Re: [DNG] /lib/modules on separate …
Góra strony
Delete this message
Reply to this message
Autor: Gregory Nowak
Data:  
Dla: karl
CC: dng
Temat: Re: [DNG] /lib/modules on separate partition?
On Sun, Nov 20, 2022 at 11:58:35PM +0100, karl@??? wrote:
> Greg:
> ...
> > On Sun, Nov 20, 2022 at 08:30:03PM +0100, karl@??? wrote:
> > > I long time woundered why the modules isn't stored together with the
> > > kernel (which currently is on /boot).
> >
> > Probably for historical reasons, and because kmod would need to be
> > recompiled.
>
> Small task for the people here.


Do it then if you have nothing better to spend time on. Alternatives
are always good.

>
> > > Why not have /boot/modules and mount the boot partition at your bootup ?
> > > You can do:
> > > cd /
> > > ln -s boot/modules lib/modules
> >
> > That won't work, because it assumes /lib/modules is already mounted.
>
> What assumes what?
>
> If /lib/modules -> /boot/modules and /boot is already mounted, what
> would fail ?


If all of the above are already mounted, then nothing would fail. I
was addressing the specific problem where / is already mounted, and
the system mounts /lib/modules later in the boot process instead of
right away; the scenario Mark described. If /boot is on /, but
/lib/modules isn't mounted until later, then a softlink from
/lib/modules to /boot/modules won't be accessible.

Greg


--
web site: http://www.gregn.net
gpg public key: http://www.gregn.net/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)
If we haven't been in touch before, e-mail me before adding me to your contacts.

--
Free domains: http://www.eu.org/ or mail dns-manager@???