Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775176 - sys-kernel/gentoo-kernel-bin-5.11.{4,5}: /usr/src/linux points at another kernel despite it's pointing to the correct kernel
Summary: sys-kernel/gentoo-kernel-bin-5.11.{4,5}: /usr/src/linux points at another ker...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-10 00:10 UTC by Gleb
Modified: 2021-03-10 10:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gleb 2021-03-10 00:10:10 UTC
Since the suffix was added, I noticed the following issues:

1) The /usr/src/linux symlink was not updated to the latest kernel automatically. Before 5.11.4 it was updated.

2) Even after I manually use eselect to change the symlink, I still get the following messages for both currently installed packages:

 * Messages for package sys-kernel/gentoo-kernel-bin-5.11.5:

 * /usr/src/linux points at another kernel, leaving it as-is.
 * Please use 'eselect kernel' to update it when desired.

 * Messages for package sys-kernel/gentoo-kernel-bin-5.11.4:

 * /usr/src/linux points at another kernel, leaving it as-is.
 * Please use 'eselect kernel' to update it when desired.

Is adding suffixes changed something? Was is the expected workflow now?

I didn't notice any issues with the kernel so far, but it's not clear what exactly I should do with the messages above and why symlink do not get updated. FOr me it seems that something is wrong here and the suggestions don't work.

Reproducible: Always
Comment 1 Gleb 2021-03-10 00:17:13 UTC
To clarify: the issue is about the message when installing the kernel.

THe symlink itself points to the correct location:

root@gnpc ~ # ll /usr/src
total 8.0K
lrwxrwxrwx  1 root root   24 Mar 10 07:01 linux -> linux-5.11.5-gentoo-dist/
drwxr-xr-x 24 root root 4.0K Mar 10 07:04 linux-5.11.4-gentoo-dist/
drwxr-xr-x 24 root root 4.0K Mar 10 07:03 linux-5.11.5-gentoo-dist/
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-03-10 07:34:01 UTC
I think I see the problem.  Will fix in a few minutes.
Comment 3 Larry the Git Cow gentoo-dev 2021-03-10 10:38:46 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9d95096d9ed12c0d71cc792ab2d13b2550375c4

commit a9d95096d9ed12c0d71cc792ab2d13b2550375c4
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2021-03-10 08:02:54 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2021-03-10 10:38:42 +0000

    kernel-install.eclass: Fix updating symlink w/ localversion
    
    Closes: https://bugs.gentoo.org/775176
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 eclass/kernel-install.eclass | 1 +
 1 file changed, 1 insertion(+)