Compiling a custom kernel, automatically remove unused modules ?
Is there any way to automatically remove all the kernels that you don't need from .config? For example, a script that does "lsmod" and anything that is set to [M] that is not listed can be set to [N]. That would be great when compiling your own kernel
This is assuming you are running a distro that runs a bloated kernel in the first place that sets [M] to everything