View previous topic :: View next topic |
Author |
Message |
patrix_neo Guru
Joined: 08 Jan 2004 Posts: 520 Location: The Maldives
|
Posted: Wed Apr 19, 2006 7:39 am Post subject: When emerging packages relying on /usr/src/linux (Tips) |
|
|
I have had this occuring to me at times over again.
When rebooting your newly compiled kernel or want to reboot with a different kernel, the /usr/src/linux link is pointing at that other kernel source tree.
That is bad when compiling nvidia kernels, glibc or what kernel-dependent you are emergeing. This is my solution to guarrantee this will never happend:
Code: | /etc/conf.d/local.start:
rm /usr/src/linux
ln -s /usr/src/linux-`uname -r`
|
This can ofcourse be modified to suit your gentoo-rX kernel with appropriate syntax for 'uname'.
Thought it could be handy. |
|
Back to top |
|
|
orionrobots Apprentice
Joined: 07 Oct 2003 Posts: 289 Location: London, Uk
|
|
Back to top |
|
|
kuku Tux's lil' helper
Joined: 23 Dec 2004 Posts: 142
|
Posted: Wed Apr 19, 2006 8:04 pm Post subject: |
|
|
it doesnt work when I got enabled in the kernel config Code: | Local version - append to kernel release |
[/code] |
|
Back to top |
|
|
monkey89 Guru
Joined: 08 Mar 2004 Posts: 596
|
Posted: Wed Apr 19, 2006 9:34 pm Post subject: |
|
|
I think you can also set USE="symlink" and the link will automatically be updated when you emerge a new set of kernel sources.
-Monkey |
|
Back to top |
|
|
patrix_neo Guru
Joined: 08 Jan 2004 Posts: 520 Location: The Maldives
|
Posted: Thu Apr 20, 2006 10:09 am Post subject: |
|
|
kuku wrote: | it doesnt work when I got enabled in the kernel config Code: | Local version - append to kernel release |
[/code] |
well, the gentoo vanilla is also named differently which I am using in another machine. So I think you should be cool with uname syntaxes there too (not -r though, or?) I am not all sure here and am not an expert in filtering and uname:ing so I wont say it will work definitely.
Last edited by patrix_neo on Thu Apr 20, 2006 11:51 am; edited 1 time in total |
|
Back to top |
|
|
patrix_neo Guru
Joined: 08 Jan 2004 Posts: 520 Location: The Maldives
|
Posted: Thu Apr 20, 2006 11:35 am Post subject: |
|
|
monkey89 wrote: | I think you can also set USE="symlink" and the link will automatically be updated when you emerge a new set of kernel sources.
-Monkey |
Ah, didnt know that. Still, if you rely on kernels outside the emerge tree you can always use this one. Like me (kernel.org tree kernel) |
|
Back to top |
|
|
|