[CentOS] How to blacklist a device driver (sysemd)
Gordon Messmer
gordon.messmer at gmail.com
Wed Nov 15 18:50:04 UTC 2017
On 11/15/2017 10:35 AM, Frank Thommen wrote:
>
> I tried with the files
> /etc/modprobe.d/blacklist
> /etc/modprobe.d/blacklist.conf
> and with entries
> blacklist mlx5_core
> blacklist mlx5_ib
The "blacklist" entries prevent a module being loaded by its alias
(typically a PCI ID), but not from being loaded if something explicitly
loads it by module name. Most likely, those modules are included in
your initrd.
I'd suggest using the entries described above, and editing grub.conf to
add arguments to the kernel command line:
rd.driver.blacklist=mlx5_core rd.driver.blacklist=mlx5_ib
... then rebuilding your initrd using "dracut --force"
More information about the CentOS
mailing list