I am automating some configurations on my systems using Puppet (however, that is not really relevant here). For a group of machines I want to load a kernel module at boot time. The most elegant way seems to edit /etc/modules and add one on an individual line. However, I would like to use separate files in a ".d" directory structure for easier maintainability, rather than having Puppet editing a file.
For modprobe and specifying the options for or blacklisting modules, there's /etc/modprobe.d/, but what's the most elegant way for actually loading modules at boot time using a single new file? Basically, I'm looking for the non-existing /etc/modules.d/ directory.
Any suggestions?
/etc/modules-load.dand/etc/modules? – gertvdijk Feb 23 '16 at 13:22/etc/modules-load.dworks for me on Ubuntu 14.04.3 LTS 64-bit desktop, but I don't recall ever installing systemd... maybe there's some kind of systemd/upstart bridge in 14.04? – Adam Monsen Feb 23 '16 at 18:34/etc/init.d/kmodwhich comes from Debian, working with SysVinit too. Upstart runs it too. Great! I can improve your answer and accept it I guess. – gertvdijk Feb 23 '16 at 19:55