Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131229 - "System.map not found" warning when /usr is separate filesystem
Summary: "System.map not found" warning when /usr is separate filesystem
Status: RESOLVED DUPLICATE of bug 104288
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: Low minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-25 08:01 UTC by Kernel
Modified: 2006-04-25 08:59 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kernel 2006-04-25 08:01:09 UTC
I have /usr as a separate filesystem.

And after each update of sys-apps/baselayout i see "System.map not found - unable to check symbols" warning at boot process (because /usr and other fs are not mouned at this step of boot process).

I think, the better way is searching this file in /usr/src/linux and in /boot directory too.

Here is a patch

$ diff -Naur modules-update-old /sbin/modules-update

--- modules-update-old  2006-04-25 18:49:14.000000000 +0500
+++ /sbin/modules-update      2006-04-25 19:55:21.000000000 +0500
@@ -206,7 +206,11 @@
        if [ -f /usr/src/linux/System.map ]; then
                depmod -a -F /usr/src/linux/System.map ${KV}
        else
-               ewarn "System.map not found - unable to check symbols"
+               if [ -f /boot/System.map ]; then
+                       depmod -a -F /boot/System.map ${KV}
+               else
+                       ewarn "System.map not found - unable to check symbols"
+               fi
        fi
 fi
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-25 08:59:59 UTC
ZOMG...

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