Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 264038

Summary: Method of listing all available kernel modules cumbersome
Product: [OLD] Docs on www.gentoo.org Reporter: OzoneHole <gkburns>
Component: Installation HandbookAssignee: Docs Team <docs-team>
Status: RESOLVED WORKSFORME    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=7
Whiteboard:
Package list:
Runtime testing required: ---

Description OzoneHole 2009-03-28 05:12:10 UTC
In section 7e the step

   Code Listing 5.1: Viewing all available modules

   # find /lib/modules/<kernel version>/ -type f -iname '*.o' -or -iname '*.ko'

is mentioned.

This does list all the available modules, however, from the standard terminal at this point in the install it quickly goes off screen.

I redirected the output into a text file and used nano to view it. 

The installation manual could usefully add steps to do this.
Comment 1 Xavier Neys (RETIRED) gentoo-dev 2009-03-28 09:15:59 UTC
Or use |less
Comment 2 Xavier Neys (RETIRED) gentoo-dev 2009-03-28 09:16:10 UTC
Or use |less
Comment 3 Jan Kundrát (RETIRED) gentoo-dev 2009-04-29 10:41:54 UTC
Is there any reason why we can't use `modprobe -l` instead of find?
Comment 4 nm (RETIRED) gentoo-dev 2009-04-29 18:12:11 UTC
That only does it for the currently running kernel. Which is not the one that was just compiled and installed. And since it only works for one kernel, that doesn't help if the user has multiple kernels/versions installed, whereas with "find" you get to pick which kernel version you want to examine.

Also, the manpage for modprobe itself suggests using the "find" approach, rather than using "-l", which modprobe says is provided only for compatibility reasons.