Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Waiting too much for prompt after booting [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mf-gentoo
n00b
n00b


Joined: 27 Jan 2023
Posts: 11

PostPosted: Wed Feb 08, 2023 3:45 pm    Post subject: Waiting too much for prompt after booting [SOLVED] Reply with quote

Dear all,

after the booting process complete with "starting local: done" I had to wait more than 10 seconds to have the login prompt on tty.
I have a HP probook 450 G8 with 16 GB of RAM and 8 core Intel i5.
I was trying to solve the ntpdate "name server cannot be used" error on boot changing some parameters on ntpclient.conf and I added connman to default rc-service. I made some frequently reboot to see if the problem was solved and after some fast as usual login prompt, the system started to hang before displaying the prompt. I changed back to the previous configuration of ntpclient.conf and removed connman from rc-service as it was before but still I have to wait more than 10 seconds to have the prompt.
I don't know where to look to find what is slowing the login prompt from appear.
Do you have any clue?

TIA

Maurizio


Last edited by mf-gentoo on Wed Feb 08, 2023 11:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5353
Location: Bavaria

PostPosted: Wed Feb 08, 2023 4:51 pm    Post subject: Reply with quote

It could be dhcp also ...
Do you use systemd or OpenRC ?
IF openrc THEN try to enable parallel start in /etc/rc.conf
Quote:
rc_parallel="YES"
Back to top
View user's profile Send private message
mf-gentoo
n00b
n00b


Joined: 27 Jan 2023
Posts: 11

PostPosted: Wed Feb 08, 2023 5:39 pm    Post subject: Reply with quote

pietinger wrote:
It could be dhcp also ...
Do you use systemd or OpenRC ?
IF openrc THEN try to enable parallel start in /etc/rc.conf
Quote:
rc_parallel="YES"


I am using openRC. The hardware should be very performant so rc_parallel should not be necessary also because before doing some little changes in order to solve the ntp-client problem (changes which I revert back) the system boot very fast and the login prompt was instantly available. The problem is that I don't know how to debug what is going on between "starting local" (but I don't have anything in /etc/local.d) and the login prompt.
By the way, thank you for your very useful guide about kernel.

Maurizio
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5353
Location: Bavaria

PostPosted: Wed Feb 08, 2023 5:49 pm    Post subject: Reply with quote

mf-gentoo wrote:
[...] The problem is that I don't know how to debug what is going on between "starting local" (but I don't have anything in /etc/local.d) and the login prompt.

Then try: rc_interactive="YES" (here you must disable parallel start)

mf-gentoo wrote:
By the way, thank you for your very useful guide about kernel.

You are very welcome ! Thank you too for your compliment. :D
Back to top
View user's profile Send private message
mf-gentoo
n00b
n00b


Joined: 27 Jan 2023
Posts: 11

PostPosted: Wed Feb 08, 2023 11:17 pm    Post subject: Waiting too much for prompt after booting [SOLVED] Reply with quote

Well, it turns out that when I added connman to default rc-service, it changed the resolv.conf file removing all entries and add it 127.0.0.1. That was enough to prevent the login prompt to appear immediately and show it after more than 10 seconds of delay. I forgot the rule that if the system is slow then check the network first.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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