Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mistery of Genkernel Auto Module Loading
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
txykumat
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2014
Posts: 104

PostPosted: Wed Oct 07, 2015 6:03 pm    Post subject: Mistery of Genkernel Auto Module Loading Reply with quote

When I use

Code:
genkernel all


Gentoo makes all the configuration for me without make menuconfig, then automatically and loads all appropriate modules. But

Code:
/etc/conf.d/modules


Is completely empty except examples and instruction. My burning question is, how is genkermel made Gentoo knows how to and which modules to load?


Thank you
Back to top
View user's profile Send private message
kikko
Apprentice
Apprentice


Joined: 29 Apr 2014
Posts: 260
Location: Milan, IT

PostPosted: Wed Oct 07, 2015 6:27 pm    Post subject: Re: Mistery of Genkernel Auto Module Loading Reply with quote

txykumat wrote:
When I use

Code:
genkernel all


Gentoo makes all the configuration for me without make menuconfig, then automatically and loads all appropriate modules. But

Code:
/etc/conf.d/modules


Is completely empty except examples and instruction. My burning question is, how is genkermel made Gentoo knows how to and which modules to load?


Thank you

Hi txykumat,
you are not the first asking this. :wink:

Regards
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43198
Location: 56N 3W

PostPosted: Wed Oct 07, 2015 6:33 pm    Post subject: Reply with quote

txykumat,

That black magic is in the initrd.

It loads all the modules. Some look around for hardware, then unload if its not found, most don't. Many modules are not hardware related.
This all happens before your root filesystem is mounted.

You will see some signs in dmesg and lsmod.
Look at all the junk.

The initrd is a cpio archive. Unpick it and look at the /init script.

Its all over and done before /etc/conf.d/modules can even be read.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum