How to blacklist Linux Kernel Modules

Blacklisting is nothing but avoiding automatic loading of Linux Kernel Modules.

Two ways to avoid blacklist a  particular module:

/etc/modprobe.d/blacklist.conf:

1. Open /etc/modprobe.d/blacklist.conf file in your editor
2. Replace the 'drivername' in the below line with the name of your driver.
blacklist drivername
3. Reboot the system


In the above case, we are disabling 'psmouse' driver


Kernel Command Line:

Add the following : 'modprobe.blacklist=drivername' into your kernel command line to blacklist the particular module


You can see the ethernet driver 'e1000' has not loaded after we added 'modprobe.blacklist=e1000' into the kernel command line

Comments

Popular posts from this blog

bb.utils.contains yocto

Difference between RDEPENDS and DEPENDS in Yocto

make config vs oldconfig vs defconfig vs menuconfig vs savedefconfig