1 |
Alex Bennee wrote: |
2 |
|
3 |
> Hi, |
4 |
> |
5 |
> However with all kernels you should be able to detrmine the root via |
6 |
> uname -r: |
7 |
> |
8 |
> malory / # ls -l "/lib/modules/`uname -r`" |
9 |
> total 212 |
10 |
> lrwxrwxrwx 1 root root 31 Jan 15 17:16 build |
11 |
> -> /home/alex/src/kernel/linux-2.6 |
12 |
> lrwxrwxrwx 1 root root 31 Jan 15 17:16 source |
13 |
> -> /home/alex/src/kernel/linux-2.6 |
14 |
> |
15 |
> There really is no need to force people to build as root under /usr/src |
16 |
> so is it possible to educate portage to use the uname method to |
17 |
> determine the root of the kernel tree for building kernel modules? |
18 |
|
19 |
You could add the following command to /etc/conf.d/local.start: |
20 |
|
21 |
ln -sf /lib/modules/`uname -r`/build /usr/src/linux |
22 |
|
23 |
In this way the symbolic link will be updated to point at the kernel you are |
24 |
currently running every time your computer starts up. |
25 |
|
26 |
/Bo |
27 |
|
28 |
-- |
29 |
gentoo-user@g.o mailing list |