public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Nikos Chantziaras <realnc@arcor.de>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user]  Re: Kernel upgrading and linux symlink
Date: Sat, 31 Oct 2009 20:00:35 +0200	[thread overview]
Message-ID: <hchtvu$1et$1@ger.gmane.org> (raw)
In-Reply-To: <87hbtfo68r.fsf@newsguy.com>

On 10/31/2009 06:52 PM, Harry Putnam wrote:
> Looking at the kernel upgrade pages at
>    http://www.gentoo.org/doc/en/kernel-upgrade.xml
>
> Its a bit confusing about the symlink creation.  I've wondered about
> it a few times.
>
> At the top, you're told how to get the sources and then a discussion
> of the symlink follows.
>
> It appears you are expected to change the symlink to the newly
> installed sources.
>
> But then it says:
> 4.  Updating the /usr/src/linux symbolic link
>
>    "Gentoo requires that the /usr/src/linux symbolic link points to the
>    sources of the kernel you are running."
>
> So if gentoo `requires' the symlink to point to the running kernel
> why are we changing it to the newly installed but not yet compiled or
> started kernel?
>
> And in fact does it really matter if its pointing at the newly
> installed or actual running kernel, when kernel compiling operations
> take place?

The link is created only if you have the "symlink" USE flag enabled.

Also, "Gentoo requires that the [...] symbolic link points to the 
sources of the kernel you are running" is not entirely correct.  It is 
required only when you want to build something against that kernel. 
Obviously, you need to create the symlink if you want to build the newly 
installed kernel, even though the system is still running an older one.

And, btw, the symlink is changed easily with eselect:

   eselect kernel list

to get a list and:

   eselect kernel set N

to point the symlink to the Nth kernel.

So, to sum it up, when you update to a new kernel, first update the 
symlink (or let the ebuild take care of it), build the kernel, boot it, 
*then* rebuild external modules (like ati-drivers).  If you know what 
you're doing, you don't need to reboot before rebuilding external 
modules, for example I do:

ebuild /usr/portage/x11-drivers/ati-drivers/ati-drivers-N.ebuild compile
mkdir /lib/modules/KERNEL_VERSION/video
cp 
/var/tmp/portage/x11-drivers/ati-drivers-N/work/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.ko 
/lib/modules/KERNEL_VERSION/video/

But it general, just boot the new kernel and emerge external modules 
again; safer and more straight forward.




  reply	other threads:[~2009-10-31 18:01 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-31 16:52 [gentoo-user] Kernel upgrading and linux symlink Harry Putnam
2009-10-31 18:00 ` Nikos Chantziaras [this message]
2009-10-31 18:09   ` [gentoo-user] " Harry Putnam
2009-10-31 18:41     ` Nikos Chantziaras
2009-10-31 19:18     ` Alan McKinnon
2009-10-31 20:03       ` Nikos Chantziaras
2009-10-31 21:07         ` Alan McKinnon
2009-10-31 21:27           ` Nikos Chantziaras
2009-10-31 21:43             ` Mark Knecht
2009-10-31 22:17               ` Alan McKinnon
2009-10-31 20:06       ` Harry Putnam
2009-10-31 21:03         ` Alan McKinnon
2009-11-01  7:00           ` Dirk Heinrichs
2009-10-31 20:50   ` Neil Bothwick
2009-10-31 18:24 ` [gentoo-user] " Denis
2009-10-31 21:26   ` Dale
2009-10-31 22:20     ` Alan McKinnon
2009-10-31 22:52       ` Dale
2009-10-31 22:58         ` Alan McKinnon
2009-10-31 23:25       ` Neil Bothwick
2009-10-31 23:29       ` Mark Knecht
2009-10-31 23:40         ` [gentoo-user] " walt
2009-10-31 23:43           ` Mark Knecht
2009-10-31 23:41         ` [gentoo-user] " Alan McKinnon
2009-10-31 23:50           ` Mark Knecht
2009-10-31 23:43         ` Mike Edenfield
2009-11-01  6:55 ` Dirk Heinrichs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hchtvu$1et$1@ger.gmane.org' \
    --to=realnc@arcor.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox