Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
`/usr/src/linux` symlink not created
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
stig124
n00b
n00b


Joined: 12 Jun 2021
Posts: 1

PostPosted: Sat Jun 12, 2021 11:17 pm    Post subject: `/usr/src/linux` symlink not created Reply with quote

Hello,

Currently at the part just before `make menuconfig`, I kinda struggle

I've
Code:
emerge --ask sys-kernel/gentoo-sources
and
Code:
dispatch-conf
successfully but the symlink is not made :

The linux-{version} is here with no issues

Code:
ls -lah /usr/src/
total 4.0K
drwxr-xr-x  3 root root   47 Jun 13 01:08 .
drwxr-xr-x 12 root root  158 Jun 11 16:34 ..
-rw-r--r--  1 root root    0 Jun 11 16:28 .keep
drwxr-xr-x 25 root root 4.0K Jun 13 01:06 linux-5.10.27-gentoo


But not the symlink.

I made it myself using
Code:
ln -sf /usr/src/linux-5.10.27-gentoo/ /usr/src/linux


Code:
total 4.0K
drwxr-xr-x  3 root root   60 Jun 13 01:08 .
drwxr-xr-x 12 root root  158 Jun 11 16:34 ..
-rw-r--r--  1 root root    0 Jun 11 16:28 .keep
lrwxrwxrwx  1 root root   30 Jun 13 01:08 linux -> /usr/src/linux-5.10.27-gentoo/
drwxr-xr-x 25 root root 4.0K Jun 13 01:06 linux-5.10.27-gentoo


Is it bad or not to do that?

Nicolas <stig124> FORMICHELLA
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6097
Location: Dallas area

PostPosted: Sat Jun 12, 2021 11:21 pm    Post subject: Reply with quote

eselect kernel
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2956
Location: Edge of marsh USA

PostPosted: Sun Jun 13, 2021 2:35 am    Post subject: Reply with quote

You did perfectly. Gentoo doesn't know which kernel you want to use.

Or you can use USE=symlink on Gentoo sources:
Code:
$ euse -i symlink
global use flags (searching: symlink)
************************************************************
[-      ] symlink - Force kernel ebuilds to automatically update the /usr/src/linux symlink

I wouldn't do that.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54212
Location: 56N 3W

PostPosted: Sun Jun 13, 2021 9:37 am    Post subject: Reply with quote

stig124,

or maintain the symlink by hand.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
wjb
l33t
l33t


Joined: 10 Jul 2005
Posts: 605
Location: Fife, Scotland

PostPosted: Sun Jun 13, 2021 11:10 am    Post subject: Reply with quote

To see what the choice is:
Code:
# eselect kernel list
Available kernel symlink targets:
  [1]   linux-5.10.27-gentoo *


Then to set the symlink:
Code:
# eselect kernel set 1
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21593

PostPosted: Sun Jun 13, 2021 4:18 pm    Post subject: Reply with quote

Depending on what you will install later, you may not need the symlink at all. The symlink is a convenience so that you and some programs can do /usr/src/linux/path and assume that it will be valid and relevant to the administrator's chosen kernel. If you don't use any programs like that, you could do without the symlink.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum