Preventing Modules From Loading at Boot Time
You can prevent modules from loading at boot time by adding a deny rule in a configuration
file in the /etc/modprobe.d
directory and then rebuilding the initial ramdisk
used to load the kernel at boot time.
WARNING:
Disabling modules can have unintended consequences and can prevent a system from booting or from being fully functional after boot. As a best practice, create a backup ramdisk image before making changes and ensure that the configuration is correct.