Currently I'm doing something like :
$> eselect kernel set `eselect kernel list | tail -n 1 | cut -f2 -d '[' | cut -f1 -d ']'`
/me wonders whether a functionality for that is helpful for many others or not
I don't understand what you are trying to achieve or what you are proposing in this bug
(In reply to comment #1)
> I don't understand what you are trying to achieve or what you are proposing
> in this bug
Currently I've 3 vanilla kernels - the latest is always my preferred choice :
tfoerste@n22 ~ $ ls -l /usr/src/
lrwxrwxrwx 1 root root 11 Jul 16 21:59 linux -> linux-3.4.x
drwxrwxr-x 24 root root 4096 Jul 16 19:34 linux-3.0.x
drwxrwxr-x 24 root root 4096 Jul 15 11:05 linux-3.2.x
drwxr-xr-x 24 root root 4096 Jul 16 21:07 linux-3.4.x
drwxr-xr-x 7 root root 4096 Aug 18 2011 rpm
However I still do follow the other stable kernels, meaning I've to recompiled virtualbox-modules every time. With "Last" I meant therefore "linux-3.4.x" until 3.5 comes out.
But this is always the case isn't it? once you update your kernel, the symlink will point to the last one
Well, I've to "eselect kernel set X" to compile the virtual modules for the other kernels too (and sometimes I do not reset it immediately afterwards).
And using "last" would not net for me to know how many kernels I do have installed currently.
BTW I'm using this :
tfoerste@n22 /etc/portage $ cat profile/package.provided
and I do install the vanilla kernels from the git tree.
nevertheless - this bug entry is only a RFC - might be I'm special.
This has been discussed before, and the conclusion was that there's no reliable way to find out what kernel would qualify as latest. For example, users may have vanilla-sources installed along with gentoo-sources.