[Crash-utility] mod -S and debuginfo kernel rpm

Dave Anderson anderson at redhat.com
Wed Apr 22 13:26:50 UTC 2009


----- "Dave Anderson" <anderson at redhat.com> wrote:

> My suggestion would allow you to do this:
> 
>   # mkdir mydump
>   # cd mydump
>   # rpm2cpio kernel-2.6.18-128.el5.s390x.rpm | cpio -idv
>   # rpm2cpio kernel-debuginfo-2.6.18-128.el5.s390x.rpm | cpio -idv
>   # crash 
>   ...
>   crash> mod -S .
> 
> and then the stripped modules would be searched for in:
> 
>   ./lib/modules/...
> 
> And then my proposed enhancement would search for the associated 
> ko.debug files in:
> 
>   ./usr/lib/debug/lib/modules/...
> 
> So no changes to the current "mod" command options would be required.

And just to clarify this further.  When "mod -S [directory]" is entered,
the search will be made starting from [directory].  In other words,
it will not immediately append "/lib/modules" and "/usr/lib/debug/lib/modules"
onto [directory].  It's just that that's where they'll be found
if the double-rpm2cpio were done.  

Conceivably you could just dump all the .ko and .ko.debug files into
the one flat [directory], and it will find them right away.

Dave




More information about the Crash-utility mailing list