Linux Kernel – How to Block Built-in Drivers

driverskernelkernel-moduleslinux-kernelmodprobe

I configured and compiled Linux kernel with nouveau driver built-into kernel, i.e. with <*> as opposed to <M> when doing make menuconfig inside Linux kernel source directory.

Now, I intend to use another driver rather than nouveau. If nouveau was a module, I would add a line like blacklist nouveau inside /etc/modprobe.d/blacklist.conf

What should I do now.

Best Answer

You can also temporarily blacklist them on the grub command line (linux line) when you boot with the syntax

module_to_blacklist.blacklist=yes

OR

modprobe.blacklist=module_to_blacklist

You need to modify the grub,cfg to make the changes permanent.

Mind you, this solution will not work for few modules

Related Question