Re: [gentoo-user] Listing kernel modules

2020-05-02 Thread Peter Humphrey
On Saturday, 2 May 2020 14:32:22 BST Consus wrote: > On Sat, May 02, 2020 at 04:29:38PM +0300, Consus wrote: > > On Sat, May 02, 2020 at 02:19:18PM +0100, Peter Humphrey wrote: > > > Afternoon all, > > > > > > Is there a straightforward way of listing kernel modules that exist > > > but haven't be

Re: [gentoo-user] Listing kernel modules

2020-05-02 Thread Jack
On 5/2/20 9:19 AM, Peter Humphrey wrote: Afternoon all, Is there a straightforward way of listing kernel modules that exist but haven't been loaded? I'm sure I have quite a number that I don't need, and I'd like to remove them from the kernel config. How about just grepping for them under /lib/m

Re: [gentoo-user] Listing kernel modules

2020-05-02 Thread Consus
On Sat, May 02, 2020 at 04:29:38PM +0300, Consus wrote: > On Sat, May 02, 2020 at 02:19:18PM +0100, Peter Humphrey wrote: > > Afternoon all, > > > > Is there a straightforward way of listing kernel modules that exist > > but haven't been loaded? > > This will do I guess: > > # lsmod | awk

Re: [gentoo-user] Listing kernel modules

2020-05-02 Thread Consus
On Sat, May 02, 2020 at 02:19:18PM +0100, Peter Humphrey wrote: > Afternoon all, > > Is there a straightforward way of listing kernel modules that exist > but haven't been loaded? This will do I guess: # lsmod | awk '{print $1}' > inserted # find /lib/modules/$(uname -r) -name '*

[gentoo-user] Listing kernel modules

2020-05-02 Thread Peter Humphrey
Afternoon all, Is there a straightforward way of listing kernel modules that exist but haven't been loaded? I'm sure I have quite a number that I don't need, and I'd like to remove them from the kernel config. -- Regards, Peter.