View previous topic :: View next topic |
Author |
Message |
mf-gentoo n00b
Joined: 27 Jan 2023 Posts: 11
|
Posted: Wed Feb 08, 2023 3:45 pm Post subject: Waiting too much for prompt after booting [SOLVED] |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5353 Location: Bavaria
|
Posted: Wed Feb 08, 2023 4:51 pm Post subject: |
|
|
It could be dhcp also ...
Do you use systemd or OpenRC ?
IF openrc THEN try to enable parallel start in /etc/rc.conf
|
|
Back to top |
|
|
mf-gentoo n00b
Joined: 27 Jan 2023 Posts: 11
|
Posted: Wed Feb 08, 2023 5:39 pm Post subject: |
|
|
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
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5353 Location: Bavaria
|
Posted: Wed Feb 08, 2023 5:49 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
mf-gentoo n00b
Joined: 27 Jan 2023 Posts: 11
|
Posted: Wed Feb 08, 2023 11:17 pm Post subject: Waiting too much for prompt after booting [SOLVED] |
|
|
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 |
|
|
|