Loading modules during boot

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
Bart
Posts: 41
Joined: 31. May 2011, 17:41

Loading modules during boot

Post by Bart »

Hi all,
I'm having some problems to load some modules at boot time.
I have added this line at the end of /etc/rc.d/rc.modules

/sbin/modprobe lm90

but the module don't start during boot.
If I try to load it manually all works fine. Why?

Thanks.
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Loading modules during boot

Post by Shador »

Bart wrote:Hi all,
I'm having some problems to load some modules at boot time.
I have added this line at the end of /etc/rc.d/rc.modules

/sbin/modprobe lm90

but the module don't start during boot.
If I try to load it manually all works fine. Why?

Thanks.
What's the output of:

Code: Select all

ls -l /etc/rc.d/rc.modules*
Image
User avatar
Bart
Posts: 41
Joined: 31. May 2011, 17:41

Re: Loading modules during boot

Post by Bart »

Shador wrote:What's the output of:

Code: Select all

ls -l /etc/rc.d/rc.modules*

Code: Select all

lrwxrwxrwx 1 root root    23 lug 22 14:21 /etc/rc.d/rc.modules -> rc.modules-2.6.37.6-smp*
-rwxr-xr-x 1 root root 35406 set 14 13:46 /etc/rc.d/rc.modules-2.6.37.6-smp*
User avatar
gapan
Salix Wizard
Posts: 6368
Joined: 6. Jun 2009, 17:40

Re: Loading modules during boot

Post by gapan »

Try putting it in rc.local instead.
Image
Image
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Loading modules during boot

Post by Shador »

gapan wrote:Try putting it in rc.local instead.
That's probably going to work. But it doesn't explain why rc.modules doesn't work. After all the latter is much better suited for modules as it runs much earlier.

Do you get such a line when booting: "Running /etc/rc.d/rc.modules" or something like this "Module dependencies up to date" / "Updating modules dependencies" ? The only condition that seems to be able to prevent rc.modules from running is when /proc/modules is not readable during rc.S.
Image
User avatar
Bart
Posts: 41
Joined: 31. May 2011, 17:41

Re: Loading modules during boot

Post by Bart »

True, infact using /etc/rc.d/rc.local all works fine but the problem remains.
Post Reply