Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to stop delay at boot while system waits for enp1s0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
unfmachine
n00b
n00b


Joined: 05 Mar 2017
Posts: 20

PostPosted: Wed Mar 08, 2017 2:56 pm    Post subject: How to stop delay at boot while system waits for enp1s0 Reply with quote

Hello ,

Now that have wifi set up thanks to the wonderful people here at the forums, I was wondering how to stop the boot cycle from pausing at the following snippet while , i imagine, it looks for an ethernet connection.

Code:

 * Bringing up interface enp1s0
 *   Caching network module dependencies
need dbus
 *   dhcp ...
 *     Running dhcpcd ...
enp1s0: waiting for carrier <---- this part takes a long time
timed out
dhcpcd exited
 [ !! ]
 [ !! ]
 * ERROR: net.enp1s0 failed to start



I don't want to disable ethernet at boot entirely since there will most likely be a time in the future where I'll have to use it. But, i would like to find a way to speed up the boot process and somehow tell the system that if it doesn't find the ethernet connected to move along a bit faster and not "wait for carrier".

Also, am I correct that the following error is ok to disregard or is there some fix for it?

Code:

 *   Starting wpa_cli on wlp2s0 ...
 [ ok ]
 *   Backgrounding ... ...
 * WARNING: net.wlp2s0 has started, but is inactive


Thanks
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Mar 08, 2017 3:00 pm    Post subject: Reply with quote

unfmachine,

You can tell enp1s0 not to start automatically or you can set a dhcpcd timeout.
How you do either depends on how you start networking.

If wlp2s0 is working, you con disregard the
Code:
* WARNING: net.wlp2s0 has started, but is inactive

That's what happens to me.
_________________
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
unfmachine
n00b
n00b


Joined: 05 Mar 2017
Posts: 20

PostPosted: Wed Mar 08, 2017 5:10 pm    Post subject: Reply with quote

Thanks!
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Wed Mar 08, 2017 9:40 pm    Post subject: Re: How to stop delay at boot while system waits for enp1s0 Reply with quote

unfmachine wrote:
I don't want to disable ethernet at boot entirely since there will most likely be a time in the future where I'll have to use it. But, i would like to find a way to speed up the boot process and somehow tell the system that if it doesn't find the ethernet connected to move along a bit faster and not "wait for carrier".

unfmachine ... there are various methods to deal with such situations, the primary one being the use of a package such as sys-apps/ifplugd or sys-apps/netplug (these can be configured, via /etc/conf.d/net, to inform netifrc how it should manage 'plug' devices). See the section "Cable in/out detection" in /usr/share/doc/netifrc-*/net.example.bz2 for more details about 'plug'.

unfmachine wrote:
Also, am I correct that the following error is ok to disregard or is there some fix for it?

Code:
* WARNING: net.wlp2s0 has started, but is inactive

It is just a 'warning' (which should perhaps be more accurately provided as 'info'), and is perfectly normal.

HTH & best ... khay
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6737
Location: Blighty

PostPosted: Wed Mar 08, 2017 11:34 pm    Post subject: Reply with quote

Another solution would be to add dhcpcd directly to a runlevel and avoid the net.* junk.
See my sig.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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