Where can I get the 11.04 kernel .config file?

I'm using Maverick with the latest available kernels on kernel.org and building them myself. Until now I've been basing my configuration off the stock Maverick kernel and accepting the make oldconfig defaults. I've been doing this for 3 major releases now so I figure I'm starting to slip behind the current "standard".

I would like to re-base my kernels off the new Natty .config file. Is this available somewhere online or do I have to download the whole kernel package and extract it?

Edit: I've manually pulled in the config from the latest Natty kernel package and I can confirm that I propbably should have done this sooner. A lot of differences between my old "evolved" config and the Natty default. Now if I could just do this without 20 minutes of hunting and downloading the package so I can re-base in the future.


Each linux-image package contains the exact configuration file that it was built with in /boot/config-*. To see the configuration file for the currently running Linux kernel, do:

  • less /boot/config-$(uname -r)

I have checked with the Ubuntu kernel people (on Freenode #ubuntu-kernel) and they have confirmed my belief that there isn't really "the config", but it is actually constructed at build/compile time by including a number of Kconfig files; these depend on the exact architecture and target (desktop/server/cloud). You should be able to read that (short) conversation at:

  • irclogs.ubuntu.com/2011/03/15/#ubuntu-kernel.html#t13:48

A list of that variety can be found using packages.ubuntu.com and the following search:

  • packages.ubuntu.com/search?keywords=config-2.6

Hunting, around, it would appear that the .config is also included in the linux-headers-* packages. These are .deb files (which are simple .ar archives that will open with file-roller) and only about 800 kB each. If you know the particular target, architecture and version you're after, you can grab these straight from Launchpad or from the archive itself:

  1. archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-header-2.6*.deb
  2. then look in /usr/src/linux-headers-2.6*/.config

If you want to automate the whole process into one command, you could try the following; make sure you keep it all on one line!

  • wget -qO- http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-2.6.38-6-generic_2.6.38-6.34_i386.deb | dpkg-deb --fsys-tarfile /dev/stdin | tar Ox --wildcards './usr/src/*/.config'

Hope that helps!


The kernel team has posted the configs for Natty here:

  • http://kernel.ubuntu.com/~kernel-ppa/configs/natty/

Sources:

  • Mailing list post
  • Wiki page detailing the changes between 10.10 and 11.04

On my Ubuntu 11.10 system the kernel config is in the file '/boot/config-3.0.0-12-generic'.