You are not logged in.

#1 2013-07-13 08:21:21

dkorzhevin
Member
Registered: 2010-04-23
Posts: 61

Autoload modules

Hi,

Is there any other way of auto-load kernel modules, other then add module to /etc/modules-load.d/ ?

Offline

#2 2013-07-13 08:23:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Autoload modules

Why do you ask?

Offline

#3 2013-07-13 12:24:47

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,497
Website

Re: Autoload modules

There, in /etc/modprobe.d/*.conf files, or on the kernel line.

What do you need loaded, and why is /etc/modules-load.d not a suitable way of doing it?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2013-07-13 14:43:54

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Autoload modules

/etc/modprobe.d is for module configuration via m-i-t or kmod. there's no mechanism to auto-load modules from here.

Suspect the OP isn't using systemd, in which case they'll need to wire this into whatever it is they're using for PID 1.

Offline

#5 2013-07-13 14:48:53

Thaodan
Member
From: Dortmund, Nordrein-Westfalen
Registered: 2012-04-28
Posts: 448

Re: Autoload modules

kmod works without systemd or not? Since than this should be no issue.


Linux odin 3.13.1-pf #1 SMP PREEMPT Wed Mar 5 21:47:28 CET 2014 x86_64 GNU/Linux

Offline

#6 2013-07-13 14:53:53

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Autoload modules

But kmod doesn't read from /etc/modules-load.d ... this is a systemd invention. The fact that systemd uses kmod to load modules from this directory is merely an implementation detail.

Last edited by falconindy (2013-07-13 15:00:10)

Offline

#7 2013-07-13 15:10:54

Thaodan
Member
From: Dortmund, Nordrein-Westfalen
Registered: 2012-04-28
Posts: 448

Re: Autoload modules

but from /etc/modprobe.d which works the same.


Linux odin 3.13.1-pf #1 SMP PREEMPT Wed Mar 5 21:47:28 CET 2014 x86_64 GNU/Linux

Offline

#8 2013-07-13 15:16:05

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Autoload modules

Please point me to the documentation that states that modules can be auto-loaded at bootup from configuration in /etc/modprobe.d

Here, I'll save you some time -- that documentation doesn't exist, because the functionality doesn't either.

Last edited by falconindy (2013-07-13 15:16:20)

Offline

#9 2013-07-14 01:58:26

Thaodan
Member
From: Dortmund, Nordrein-Westfalen
Registered: 2012-04-28
Posts: 448

Re: Autoload modules

udev reads this directory?


Linux odin 3.13.1-pf #1 SMP PREEMPT Wed Mar 5 21:47:28 CET 2014 x86_64 GNU/Linux

Offline

#10 2013-07-14 04:49:03

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Autoload modules

No. It doesn't.

Offline

#11 2013-07-18 11:22:45

psycho
Member
Registered: 2013-04-26
Posts: 29

Re: Autoload modules

My excuses for hijacking this thread, but i'm also interested in autoloading modules. I have the following problem : whenever i try to start a Virtualbox machine and module 'vboxdrv' is not loaded, it crashes the whole system and i have to reboot. However, i have /etc/modules-load.d/virtualbox.conf which contains 'vboxdrv'. However, after reboots and suspends, if i don't manually load 'vboxdrv', it will crash my system, again. Should i add an exception in sudoers file for modprobe and put 'sudo modprobe vboxdrv' into my autostart file ? Any other method is appreciated. Thanks in advance.


~ > fortune
I never met a piece of chocolate I didn't like.

Offline

Board footer

Powered by FluxBB