Preventing modules from getting loaded

Bob Nielsen nielsen at oz.net
Sat Oct 30 18:34:00 UTC 2004


On Sat, Oct 30, 2004 at 08:15:27PM +0200, Arjen Wiersma wrote:
> Hi all,
> 
> The list of modules loaded at boot time is quite large, for instance
> ipv6... anyone know of a way to prevent them from being loaded without
> having to recompile the kernel?
> 

You should be able to automatically remove it when booting by putting an 
appropriate "remove" line in /etc/modules.conf (see 'man modules.conf' 
for syntax).

You could rename or remove the <modulename>.ko file from the appropriate
location in /lib/modules.





More information about the ubuntu-users mailing list