View previous topic :: View next topic |
Author |
Message |
ShanaXXII Apprentice
Joined: 29 Jun 2014 Posts: 283 Location: Canada
|
Posted: Tue Jun 19, 2018 1:45 pm Post subject: bash prompt extremely slow to load upon login from getty |
|
|
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 |
|
|
mr-simon Guru
Joined: 22 Nov 2002 Posts: 367 Location: Leamington Spa, Warks, UK
|
Posted: Sat Aug 11, 2018 3:14 pm Post subject: |
|
|
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 |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
|
Back to top |
|
|
|
|
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
|
|