LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   kernel compilation options... (https://www.linuxquestions.org/questions/linux-general-1/kernel-compilation-options-724875/)

antiregulator 05-09-2009 11:10 AM

kernel compilation options...
 
hey there...

is there a way to see with what options has my kernel been compiled?

you know, a command like -uname or so...

i'm trying to dig kernel module stuff, and parameters like enabled modules or modversioning, i don't know if my kernel supports all that!

i understand that each of these features i just could test to see whether it's on or off, still i would really appreciate something more centralized.

thx in advance!

dave.

sycamorex 05-09-2009 11:14 AM

Would the config file in /boot help you?

MS3FGX 05-09-2009 11:14 AM

There is an option in the kernel configuration to embed the original config options into it so they can be extracted later on, but I don't know if distros are enabling that or not.

There should be a "config" file under /boot though, which will correspond to the various kernel images that are also living there. The config files are plain-text, and you can easily grep/search them to see what was enabled.

synss 05-09-2009 12:05 PM

The config of the current kernel may be in /proc/config.gz, use zgrep to retrieve the options.

sycamorex 05-09-2009 12:13 PM

There's a vary similar thread on LQ where /proc/config is recommended as well. However, apparently this option (to create /proc/config.gz) is not enabled by default in many kernels so there isn't /proc/config(.gz) on many system (including mine)

antiregulator 05-09-2009 12:19 PM

thx everyone!

got what i wanted!


All times are GMT -5. The time now is 10:14 PM.