Rumen Yotov wrote:

On Tue, 2005-11-08 at 17:18 +0000, Digby Tarvin wrote:
Something which I havn't found any explicit elaboration of in the
documentation...

The convention in the Linux/gentoo filesystem seems to be to have a unique
directory for each installed kernel in /usr/src, with a symbolic link to
the 'current' kernel directory named /usr/src/linux..

The question is - is this just a user convenience, or will parts of
the system break if it is not maintained correctly?

The reason I ask is that if I have several kernels which I have configured
grub to allow me to select from at boot time, where should this symlink
point? The newest kernel? An experimental one being worked on? The one most
recently booted from. If the latter case then it is likely to be wrong for
a finite period following boot until the system has come up far enough to
allow me to update it.

Anyone know what is likely to break (if anything) if I boot from a kernel
other than the one which corresponds to the directory /usr/src/linux points
to, and neglect to update the link? Does it direct (for instance) the target
directory for an emerge of new kernel components? Or does it perhaps have to
point to the kernel being built during any recompile?

Regards,
DigbyT
--
Digby R. S. Tarvin                                             [EMAIL PROTECTED]
http://www.digbyt.com
Hi,
There seems to exist at least two current kernels - one is the kernel to
which /usr/src/linux points, this one is used by most (all ?)
kernel-module programs (i have 3 of them: nvidia, arpstar, loop-aes; had
also alsa-driver). When you compile/recompile any one of them they use
the kernel sources pointed by /usr/src/linux. Patch kernel sources too
(e.g. "l7-filter").
The second kernel is your running kernel (available by "uname -r") this
one is the one actually running at any givenn time. Don't have any
examples of something using this one. Anybody here?
HTH.Rumen
Changed my symlink to point to 2.6.12-gentoo-r10, compiling ndiswrapper 1.5 is using running kernel 2.6.13

#ls -al
lrwxrwxrwx   1 root root   24 Nov  8 12:57 linux -> linux-2.6.12-gentoo-r10/

#make
make -C driver
make[1]: Entering directory `/root/ndiswrapper-1.5/driver'
make -C /lib/modules/2.6.13-gentoo-r3/build SUBDIRS=/root/ndiswrapper-1.5/driver \
       DRIVER_VERSION=1.5
make[2]: Entering directory `/usr/src/linux-2.6.13-gentoo-r3'
 Building modules, stage 2.
 MODPOST

Chris
--
gentoo-user@gentoo.org mailing list

Reply via email to