What are .config parameters for my kernel?

Jonathan Ryshpan jonrysh at pacbell.net
Thu Oct 29 21:08:36 UTC 2009


On Thu, 2009-10-29 at 12:14 -0700, Rick Stevens wrote:
> Jonathan Ryshpan wrote:
> > I had thought that they would come from the .config file from either the
> > kernel-source.rpm or the kernel-devel.rpm for my current kernel.  But
> > these two files are different.CER=y

> The config parameters for kernels installed by RPM packages are in
> /boot.  Look for "config-(kernelversion)" files.  For example, to
> see if my current kernel was compiled with PREEMPT:
> 
> 	[root at bigdog ~]# grep PREEMPT /boot/config-`uname -r`
> 	# CONFIG_PREEMPT_RCU is not set
> 	# CONFIG_PREEMPT_RCU_TRACE is not set
> 	CONFIG_PREEMPT_NOTIFIERS=y
> 	# CONFIG_PREEMPT_NONE is not set
> 	CONFIG_PREEMPT_VOLUNTARY=y
> 	# CONFIG_PREEMPT is not set
> 
> So, no, my kernel is not compiled with PREEMPT set.

Thanks.  

In fact the controlling config file is the one in kernel-devel.rpm,
which matches the one in /boot.  In past releases, this has matched 
the one in kernel-source.rpm, but apparently not in this release.

$ sum /usr/src/kernels/2.6.30.9-90.fc11.x86_64/.config \
> ~/rpmbuild/BUILD/kernel-2.6.30/linux-2.6.30.x86_64/.config \
> /boot/config-2.6.30.9-90.fc11.x86_64
22614    93 /usr/src/kernels/2.6.30.9-90.fc11.x86_64/.config
16416    94 /home/jonrysh/rpmbuild/BUILD/kernel-2.6.30/linux-2.6.30.x86_64/.config
22614    93 /boot/config-2.6.30.9-90.fc11.x86_64





More information about the users mailing list