3

I'm looking for the .config Kernel Configuration file used to compile the kernel of my Ubuntu 24.04 LTS (Noble Numbat).

As far as I know /boot/config-6.8.045-generic is not what I'm looking for since it can be changed after the compilation. So far I have checked /proc/config.gz but didn't find anything.

I tried the extract-ikconfig script, but it didn't work. I assume the kernel has been compiled with the CONFIG_IKCONFIG=1.

Also sudo modprobe configs didn't work.

I downloaded the source files with git clone https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/noble, but I didn't find it there either. Maybe I looked wrong.

Could you guys please help me out?

With regards

mpboden
  • 3,046

1 Answers1

0

I'm looking for the .config Kernel Configuration file used to compile the kernel of my 24.04 LTS (Noble Numbat).

It should be under /usr/src/ ... See:

/usr/src/linux
Contains the source code for the Linux kernel.

/usr/src/linux/.config

The last kernel source configuration. This file is normally created through the 'make config', 'make menuconfig' or 'make xconfig' steps during kernel compilation.

... from Linux Filesystem Hierarchy.

Actual full path name might vary between distributions, but on Ubuntu:

cat /usr/src/*$(uname -r)/.config

... should get you there.

FWIW and IIRC, CONFIG_IKCONFIG is NOT set by default.

Raffa
  • 34,963