Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to get rid of "waiting for carrier" delay
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
CrazyCasta
n00b
n00b


Joined: 01 Sep 2011
Posts: 27

PostPosted: Tue Aug 04, 2015 5:28 pm    Post subject: How to get rid of "waiting for carrier" delay Reply with quote

I have a laptop and fairly often I boot up somewhere where I don't have ethernet and get stuck at the "waiting for carrier" message for however long that takes (feels like 20-30s) which is the majority of my boot time. Is there a way to set the timeout or just disable it altogether?
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Tue Aug 04, 2015 5:40 pm    Post subject: Reply with quote

Have you tried ifplugd?
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Tue Aug 04, 2015 5:50 pm    Post subject: Reply with quote

What are you using to get such delay. none of my openrc boxes have such with eudev.

And I assume you talk about Wireless lan right?

Please be more specific.
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3137

PostPosted: Tue Aug 04, 2015 8:23 pm    Post subject: Reply with quote

What init system do you use and in what fashion you configure your network?
Maybe you can enable parallel boot?
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Wed Aug 05, 2015 9:09 am    Post subject: Reply with quote

it looks more that something hard depends on the network.

bootchart should shed a light where it really hangs and than check out the dependencies.
Back to top
View user's profile Send private message
CrazyCasta
n00b
n00b


Joined: 01 Sep 2011
Posts: 27

PostPosted: Wed Aug 05, 2015 8:26 pm    Post subject: Reply with quote

It's the wired interface. When you don't have something plugged in on any interface that can detect it (almost every computer I've ever installed gentoo on) it will hang with the message "waiting for carrier" until it times out. I would still need to start it because I do use it quite often, I just want it to instantly fail if there's no network.

As for ifplugd, I'm the basic gentoo setup with openrc and would rather not start dealing with other setups. What I'm hoping is that there is some configuration parameter I can put in /etc/conf.d/net to deal with this behaviour.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Wed Aug 05, 2015 8:31 pm    Post subject: Reply with quote

ifplugd integrates well with OpenRC, but the choice is yours, of course.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Aug 05, 2015 9:31 pm    Post subject: Reply with quote

Another alternative is to let dhcpcd manage things entirely - or some other equivalent.
_________________
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
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Thu Aug 06, 2015 5:03 pm    Post subject: Reply with quote

as ueberlord said. I am sure I set somewhere dhcpcd... with eudev and openrc.
and even before none of my gentoo boxes hung with or without wireless / wired lan...
I pull the power plug of my modem so there is no network node on the other end of my network usually ...


syslog => as you can see, the modem booted up much later and my box did not hang at all.

you may add parallel boot too to the bootup options..
Code:
Aug  6 19:58:40 localhost dhcpcd[3952]: eth0: offered 10.0.0.2 from 10.0.0.138
Aug  6 19:58:46 localhost dhcpcd[3952]: eth0: leased 10.0.0.2 for 86400 seconds
Aug  6 19:58:46 localhost dhcpcd[3952]: eth0: adding route to 10.0.0.0/24
Aug  6 19:58:46 localhost dhcpcd[3952]: eth0: adding default route via 10.0.0.138
Aug  6 19:58:46 localhost dhcpcd[3952]: eth0: deleting route to 169.254.0.0/16
Aug  6 19:58:46 localhost dhcpcd[3952]: eth0: removing route to 10.0.0.0/24
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