Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112125 - Patch: make modules-update look for System.map in /boot
Summary: Patch: make modules-update look for System.map in /boot
Status: RESOLVED DUPLICATE of bug 104288
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-10 15:54 UTC by Marek Szuba
Modified: 2005-11-10 15:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
modules-update.bettersysmap.patch (modules-update.bettersysmap.patch,598 bytes, patch)
2005-11-10 15:55 UTC, Marek Szuba
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Szuba archtester gentoo-dev 2005-11-10 15:54:50 UTC
Hello,

A couple of baselayout versions above I noticed modules-update only calls depmod 
if the System.map file for the running kernel is present in /usr/src/linux; 
otherwise a warning is printed and dependencies are not updated at this point. 
Considering the file in question resides in kernel source root only till right 
after the compilation (even 'make clean' gets rid of it), not to mention that it 
gets clobbered every time a new kernel is built on the same machine, I wouldn't 
call it a complete solution.

Attached you will find a patch which first checks for presence of /boot/System.
map-${KV}, which (as you most likely all know) is a pretty much standard place 
and naming convention for storing such files - sufficient to say klogd looks 
there. Only afterwards does it check the kernel source root for (versionless) 
System.map.

Cheers,
-- 
MS
Comment 1 Marek Szuba archtester gentoo-dev 2005-11-10 15:55:26 UTC
Created attachment 72607 [details, diff]
modules-update.bettersysmap.patch
Comment 2 SpanKY gentoo-dev 2005-11-10 15:57:04 UTC

*** This bug has been marked as a duplicate of 104288 ***