[Fedora-xen] kernel name confusion and no config.h in 2.6.18-1.2741 ?

Chris Lalancette clalance at redhat.com
Fri Oct 6 20:18:55 UTC 2006


Paul Wouters wrote:
> # ls -l /usr/src/kernels/
> total 4
> drwxr-xr-x 19 root root 4096 Oct  6 12:06 2.6.18-1.2741.fc6-xen-i686
> lrwxrwxrwx  1 root root   26 Oct  6 12:06 2.6.18-1.2741.fc6xen-i686 -> 2.6.18-1.2741.fc6-xen-i686
> 
> # uname -a
> Linux dnssigner.xelerance.com 2.6.18-1.2741.fc6xen #1 SMP Wed Oct 4 21:01:55 EDT 2006 i686 i686 i386 GNU/Linux
> 
> # rpm -ql kernel-headers |grep config.h
> 
> And trying to compile a module against this tree fails:
> 
> # export KERNELSRC=/lib/modules/2.6.18-1.2741fc6xen/build
> 
> [root at dnssigner openswan-2.4.7dr1]# make module
> 
> [...]
> 
> /usr/src/openswan-2.4.7dr1/modobj26/ipsec_init.c:23:26: error: linux/config.h: No such file or directory
> 
> This worked with kernel 2.6.18-1.2726 (2.6.18-1.2726.fc6xen)
> 
> Though of course, yum deleted the old kernel (I would REALLY like it to keep the older kernel) and
> it is no longer at the development/ repos.
> 
> Paul
> 
> --
> Fedora-xen mailing list
> Fedora-xen at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-xen

Two things:

1)  I believe include'ing linux/config.h was deprecated in 2.6.18, so the out-of-tree packages are going to have to catch up.  That's just the danger of being out of tree.  My guess is that it would be a relatively simple fix, but I can't say for certain.

2)  If you want yum to keep your old kernels, edit /etc/yum/pluginconf.d/installonlyn.conf and either set "enabled" to 0 (which means it never deletes old packages), or set "tokeep" to a larger number.  I usually set tokeep to around 9 or so, which ensures that I have plenty of time to go back to an older packages.

Chris Lalancette




More information about the Fedora-xen mailing list