Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bash prompt extremely slow to load upon login from getty
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ShanaXXII
Apprentice
Apprentice


Joined: 29 Jun 2014
Posts: 283
Location: Canada

PostPosted: Tue Jun 19, 2018 1:45 pm    Post subject: bash prompt extremely slow to load upon login from getty Reply with quote

After updating to 4.17 from 4.16, it takes my system forever to log in from the command line.

After I type in my username/password and hit enter, It shows:
Code:
Last login: Date ... on tty1

But the bash prompt would not show up for a good 5 minutes.
I can bypass this by hitting Ctrl+C, re-entering my username/password and the bash prompt shows normally.

When I hit Ctrl+C, I get a message from the kernel:
Code:
[  186.621645] random: crng init done
[  186.621754] random: 7 urandom warning(s) missed due to ratelimiting

I'm suspecting it has something to do with the random functions in the kernel and the recent meltdown/spectre mitigations.

Running:
Code:
sys-apps/systemd-238-r7
app-shells/bash-4.4_p12
sys-kernel/vanilla-sources-4.17.0
Back to top
View user's profile Send private message
mr-simon
Guru
Guru


Joined: 22 Nov 2002
Posts: 367
Location: Leamington Spa, Warks, UK

PostPosted: Sat Aug 11, 2018 3:14 pm    Post subject: Reply with quote

Code:
[  186.621645] random: crng init done

just means that your kernel has gathered enough entropy to start generating good random numbers. Normally this happens after you've made a few keystrokes, which helps generate entropy for this. I usually find that this message pops up during my typing in the luks password for my encrypted root disk during boot.

My initial suspicion would be that there's something in your .bashrc (or init file for whichever shell you are using) or /etc/profile, /etc/profile.d etc. that is not terminating, and therefore not dropping you to your prompt. Possibly something that is calling out to the internet before your connection has fully come up, and not timing out for 5 minutes.

What happens if you rename ~/.bashrc to something else? That would determine whether there's something there that's hanging in there?
_________________
"Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey."
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat Aug 11, 2018 3:32 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-1083804.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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