Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Force net.wlan0 to start regardless startup errors
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
mkoniarz
n00b
n00b


Joined: 10 Nov 2008
Posts: 13
Location: Zakopane

PostPosted: Tue Jan 17, 2023 1:31 pm    Post subject: Force net.wlan0 to start regardless startup errors Reply with quote

Hello.
I have a headless Raspberry Pi with Gentoo. How to force the wlan0 net & ssh to always start regardless of any errors during startup? For example, after file system errors occur? (OpenRC)
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3137

PostPosted: Tue Jan 17, 2023 2:04 pm    Post subject: Reply with quote

It depends on what you actually want to do. E.g. this could be a starting point: https://wiki.gentoo.org/wiki/Genkernel#Remote_rescue_shell

It is also possible to override service dependencies. The defaults are defined in /etc/init.d, these files belong to package maintainers and will be update by emerge without any warning, so use them for reference but do not modify them.
Put any changes you want into /etc/conf.d instead.

One thing you could try here would be copying function "depend" from service net over to conf.d and changing the keyword "need" to "use". A soft dependency should still maintain the boot order, but without giving up on error.
Other tricks are possible too.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1660

PostPosted: Tue Jan 17, 2023 2:16 pm    Post subject: Reply with quote

szatox wrote:
It depends on what you actually want to do. E.g. this could be a starting point: https://wiki.gentoo.org/wiki/Genkernel#Remote_rescue_shell

It is also possible to override service dependencies. The defaults are defined in /etc/init.d, these files belong to package maintainers and will be update by emerge without any warning, so use them for reference but do not modify them.
Put any changes you want into /etc/conf.d instead.

One thing you could try here would be copying function "depend" from service net over to conf.d and changing the keyword "need" to "use". A soft dependency should still maintain the boot order, but without giving up on error.
Other tricks are possible too.


Don't copy depend function, instead negate "need" using rc_need="!foo" (for example) in conf.d and add with rc_use="foo"

Edit: But yes, use a rescue live environment to fix real problems and not mess with dependencies for such an edge case.
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