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 09:27:03 +1000
Content-Type:
text/plain
Parts/Attachments:
text/plain (46 lines)
I'm almost there with my kernel-xen RPM/SRPM for use as a Xen Dom0 - 
however I'm having the following problem when installing:

# rpm -ivh --force kernel-xen-2.6.32-1.x86_64.rpm
Preparing...                ########################################### 
[100%]
    1:kernel-xen             ########################################### 
[100%]
WARNING: Couldn't open directory 
/tmp/initramfs.YhDlvm/lib/modules/2.6.32.40: No such file or directory
FATAL: Could not open 
/tmp/initramfs.YhDlvm/lib/modules/2.6.32.40/modules.dep.temp for 
writing: No such file or directory
E: "depmod -a xen-2.6.32-1.x86_64" failed.
mkinitrd failed
warning: %post(kernel-xen-2.6.32-1.x86_64) scriptlet failed, exit status 1

This seems strange to me - as the 2.6.32.40 kernel is the handbuilt one 
and nothing to do with the kernel RPM I'm building...

The %post I have in the kernel-xen.spec is:
%post
if [ -x /sbin/new-kernel-pkg ]
then
         /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut 
--depmod --install %{KRELEASE} || exit $?
fi
if [ -x /sbin/weak-modules ]
then
         /sbin/weak-modules --add-kernel %{KRELEASE} || exit $?
fi

%{KRELEASE} in this case is: xen-2.6.32-1.x86_64

Is this a problem with how new-kernel-pkg runs? I haven't been able to 
figure out why new-kernel-pkg even looks at modules that are not related 
to the command its being run with - but of the currently running kernel...

-- 
Steven Haigh

Email: [log in to unmask]
Web: http://www.crc.id.au
Phone: (03) 9001 6090 - 0412 935 897
Fax: (03) 8338 0299

ATOM RSS1 RSS2