View previous topic :: View next topic |
Author |
Message |
mkoniarz n00b
Joined: 10 Nov 2008 Posts: 13 Location: Zakopane
|
Posted: Tue Jan 17, 2023 1:31 pm Post subject: Force net.wlan0 to start regardless startup errors |
|
|
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 |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3137
|
Posted: Tue Jan 17, 2023 2:04 pm Post subject: |
|
|
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 |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1660
|
Posted: Tue Jan 17, 2023 2:16 pm Post subject: |
|
|
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 |
|
|
|