On 2/07/2011 9:59 AM, Teck Choon Giam wrote: > It is looking for your kernel version not with the package name > prefixed I believe. So your case for kernel-xen-2.6.32-1.x86_64.rpm I > will assume your version is 2.6.32-1 if you install that and the > module is located in /lib/modules/2.6.32-1. So using > /sbin/new-kernel-pkg will work like: > > /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod > --install 2.6.32-1 > > So your %{KRELEASE} should be something like 2.6.32-1 instead of with > the xen prefixed. I thought this, but my /lib/modules looks like: # ls -l /lib/modules/ total 12 drwxr-xr-x. 7 root root 4096 Jun 15 18:39 2.6.32-131.2.1.el6.x86_64 drwxr-xr-x. 3 root root 4096 Jul 2 09:21 2.6.32.40 drwxr-xr-x 3 root root 4096 Jul 2 09:21 xen-2.6.32-1.x86_64 # 2.6.32.40 is the currently running kernel. > If you have a spec file for me to view, I shall be able to see what went wrong. I've put the spec file at http://www.crc.id.au/files/kernel-xen.spec > I will assume you are working on SL6 since dracut only in SL6 but not > in SL5 and below. Correct.