You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oof, interesting catch. network_ready is also used in network and it makes sense to keep related functions together. An alternative solution is to source network from auto.action, but I don't like that either since it would be a very hidden dependency. Sourcing it from ip is a possibility too, but I don't want libraries sourcing each other. I'll have to take a closer look when I find some time again to do some much needed developments.
Thinking a bit more, I came to agree with your suggestion of moving it to globals, but thinking even more, I realize that it would actually be incorrect. The service type for netctl-auto is forking rather than notify, as it is for the netctl service. This means no "read" notification should be sent at all.
Still, this is a bug and I agree #194 is worth pursuing. There are several fixes imaginable
Add a 'fallback' definition in auto.action.
Add a default definition in globals.
Add a wrapper in globals that checks whether the function is defined before calling it.
Add that check in the wireless connection type (the only one affected).
I need some time to think about which option I like best. Arguments are very welcome!
My understanding is that calling systemd-notify --ready from a forking unit has no harmful effect (or rather, no effect whatsoever), so I went with this option because it's simpler. I don't know enough the different code paths to evaluate your proposed solutions, though.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This function is used in
ipwhich might be sourced fromauto.actioninstead ofnetwork, so this makes it available from every code path.Solves #191