what's the rationale behind the symlink /lib/modules/build?

Robert P. J. Day rpjday at crashcourse.ca
Sun Dec 12 16:32:27 UTC 2010


  as someone who's built a few kernels in my time, i'm well aware of
the function of the "build" symlink in the respective directories
/lib/modules/<kernel-version> -- most of the time, it's just a link to
the package-related directory /usr/src/<kernel-version>.

  on the other hand, if i build and install my own kernel, then that
kernel-specific symlink will point to my kernel source tree.  so far,
so good.

  but i don't remember seeing the higher-level symlink
/lib/modules/build which, in my case since i'm running a hand-rolled
kernel, also points to the kernel source tree from which i built my
running kernel.

  what determines the symlink value of /lib/modules/build?  the
symlink value for the currently running kernel?  it would be easy
enough for me to test by rebooting to a different kernel and seeing
what happens to that symlink but i'm currently in the middle of a
lengthy compile so i'd rather not.  thanks.

rday

-- 

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================




More information about the ubuntu-users mailing list