1 |
On Tuesday 08 November 2005 17:18, Digby Tarvin wrote: |
2 |
> The convention in the Linux/gentoo filesystem seems to be to have |
3 |
> a unique directory for each installed kernel in /usr/src, with a |
4 |
> symbolic link to the 'current' kernel directory named |
5 |
> /usr/src/linux.. |
6 |
|
7 |
You can add the following to /etc/conf.d/local.start: |
8 |
|
9 |
ebegin "Checking that /usr/src/linux is linked to booted kernel..." |
10 |
if [ "/usr/src/linux-$(uname -r)" != "$(ls -l /usr/src/linux|cut -f2 |
11 |
-d\>|cut -f2,3,4 -d' ')" ] |
12 |
then |
13 |
if [ -L /usr/src/linux ] |
14 |
then |
15 |
rm -f /usr/src/linux |
16 |
ln -s /usr/src/linux-$(uname -r) /usr/src/linux |
17 |
fi |
18 |
fi |
19 |
eend $? "Failed to link /usr/src/linux-$(uname -r) |
20 |
to /usr/src/linux" |
21 |
|
22 |
This makes sure that whenever you reboot, /usr/src/linux always |
23 |
points to the booted kernel. |
24 |
|
25 |
-- |
26 |
Peter |
27 |
======================================================================== |
28 |
Gentoo Linux: Portage 2.0.51.22-r3. kernel-2.6.13-gentoo-r5. |
29 |
i686 AMD Athlon(tm) XP 3200+. gcc(GCC): 3.3.5-20050130. |
30 |
KDE: 3.4.92 (beta2, >= 20051010). Qt: 3.3.4. |
31 |
======================================================================== |
32 |
-- |
33 |
gentoo-user@g.o mailing list |