I'm pretty sure that all Red Hat and Debian based distributions follow the convention of shipping the kernel configuration in /boot/config-*
, but what of other distributions? Or, if this convention is extremely common, which distributions don't follow it?
Kernel Configuration – Finding Kernel Configuration on Linux Distributions
configurationdistributionslinuxlinux-kernel
Best Answer
Debian and derivatives (Ubuntu, Linux Mint, …)
The configuration for the kernel
/boot/vmlinuz-VERSION
is stored in/boot/config-VERSION
. The two files ship in the same package,linux-VERSION
orkernel-VERSION
.Arch Linux, Gentoo (if enabled)
The configuration for the running kernel is stored in the kernel binary and can be retrieved with
zcat /proc/config.gz
.This file exists when the
CONFIG_IKCONFIG
option is set when compiling the kernel - and so can be true (or not) regardless of distribution, though the default kernel configuration for the two named does enable it.Incidentally, arch linux's default configuration does not name the kernel (or its initramfs image) by version even in
/boot
- the files there are named only for their corresponding packages. For example, a typical arch linux boot kernel is named/boot/vmlinuz-linux
where linux is the package one installs for the default kernel.