SCIENTIFIC-LINUX-DEVEL Archives

July 2011

SCIENTIFIC-LINUX-DEVEL@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Steven Haigh <[log in to unmask]>
Reply To:
Steven Haigh <[log in to unmask]>
Date:
Sat, 2 Jul 2011 11:22:25 +1000
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
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.

ATOM RSS1 RSS2