SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Looking for some pointers, this is a follow on from a previous post, but thought it best to have its own thread.
I'm looking on information on how modules are inserted/loaded at boot time, what determines which ones are selected etc etc.
I know I have /lib/modules/[kernel version]
When I build my kernel, does the /lib/modules/[kernel version] filder beomce poulated based on the .config file used to customise the kernel?
I also have /etc/rc.d/rc.modules
What creates this file, is it standard or customised to my system?
I see /etc/rc.d/rc.S runs the above file at boot time, so what determines which modules are available and which should be loaded?
cat /proc/modules only shows:
agpgart 42648 0 (unused)
I know I have /lib/modules/[kernel version]
When I build my kernel, does the /lib/modules/[kernel version] filder beomce poulated based on the .config file used to customise the kernel?
Yes, the modules directory is created when you launch
Code:
make modules_install
Quote:
I also have /etc/rc.d/rc.modules
What creates this file, is it standard or customised to my system?
I don't know how it is created, but if you have a look at this file you will see that it only should be used if udev is not present or not working correctly (or your hardware needs a special treatment).
Quote:
I see /etc/rc.d/rc.S runs the above file at boot time, so what determines which modules are available and which should be loaded?
My understanding of rc.modules is that it is hand-crafted. I don't know whether its contents are slackware specific or something generic that was originally from upstream somewhere, but the source file can be found in $mirror/slackware/source/k/kernel-modules/rc.modules.new. It hasn't been updated in a long while though, and when Patrick decided to modularise the loop device module he added an etc/rc.d/rc.loop initscript rather than use the traditional rc.modules file. Whether this means rc.modules is 'deprecated' or not I don't know.
Last edited by GazL; 03-26-2012 at 07:06 AM.
Reason: clarified.
Back during slackware 9.1, hotplug was the predecessor to udev. So if you aren't using rc.modules, or statically linking your modules, then look there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.