4

I am rebuilding a custom kernel. I am on Windows, what is the quickest way to grab the .config file for the CentOS RHEL linux kernel (for make oldconfig). I can't find it preinstalled in the Linux system (e.g. no /proc/config.gz) I am assuming it is in a source RPM somewhere. Do you have a link?

dongle26
  • 179
  • 1
  • 1
  • 5

2 Answers2

6

It's /boot/config-$(uname -r).

Ignacio Vazquez-Abrams
  • 45,939
  • 6
  • 79
  • 84
0

I can't find it preinstalled in the Linux system (e.g. no /proc/config.gz)

Because you haven't enabled CONFIG_IKCONFIG and CONFIG_IKCONFIG_PROC. The Linux kernel configuration is also found in the kernel source /usr/src/linux/.config (in CentOS, it is /usr/src/kernels/$(uname -r)-$(uname -m)/.config).

quanta
  • 51,413
  • 19
  • 159
  • 217