diff --git a/kernel-xenlinux.spec b/kernel-xenlinux.spec index ebd0fb5..906cc07 100644 --- a/kernel-xenlinux.spec +++ b/kernel-xenlinux.spec @@ -227,6 +227,8 @@ find %buildroot/lib/modules/%kernelrelease -name "*.ko" -type f >modnames # Move the devel headers out of the root file system mkdir -p %buildroot/usr/src/kernels mv %buildroot/lib/modules/%kernelrelease/build/* %buildroot/%src_install_dir +mv %buildroot/lib/modules/%kernelrelease/build/.config %buildroot/%src_install_dir +rmdir %buildroot/lib/modules/%kernelrelease/build ln -sf $src_install_dir %buildroot/lib/modules/%kernelrelease/build