Search

Loading modules automatically on boot

Linux kernel loads all the needed modules while booting, but some modules compiled and added later or externally might need to the loaded manually at every boot. Loading of such modules can be automated using the .conf file in /etc/modules-load.d . For example we have a file named cpu-filters.conf in the modules-load.d folder.



If we look at the modules loaded in the kernel, we can see all these three modules as shown in the figure below



Now if we comment out the lp module.

Restart the computer after commenting the lp module and search for the lp module.


It can be seen the lp is not loaded this time.

Follow by Email