[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: MOL Modules Compilation weirdness



W. Crowshaw writes:

> Futhermore, I don't exactly understand the problem
> why one shouldn't have a /usr/src/linux directory.

It's a source of confusion, leading to mistakes.
Look at this the other way too: why should you?

> I mean, after all, when I installed the kernel-source
> package, it dumps the .bzip2 archive into /usr/src.
> So too with kernel-headers. This leads me to think
> that both belonged in /usr/src and not in my home
> directory.  I also understood that I am supposed to 
> create a symbolic linux called "linux" to the
> kernel-source directory.  If these shouldn't be in
> /usr/src, then are the debs for the kernel source
> package broken then too because they deposit them
> there?

First of all, don't do the symbolic link. There isn't
one correct place to point it. The kernel you are
running, the kernel you will boot next, and the default
kernel may all be different.

Having /usr/src/linux-2.4.20-pre2 and such is reasonable.
Sometimes I do this, with /usr/src owned by a trusted
non-root user.

Dumping a .bzip2 archive in /usr/src is sane. You don't
have to extract it there. You may do:

cd
tar jxf /usr/src/linux-2.4.19-ben0.tar.bz2
cd linux-2.4.19-ben0
...



Reply to: