networkmanager: network-online --wants--> NetworkManager-wait-online #60954
+4
−0
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.
Motivation for this change
Services relying on
network-online.target
were running beforethe network was ready, every time.
Looking at why this was happening, it seems our
network-online
had no actual dependency on the appropriate connectivity check
when using networkmanager, namely
NetworkManager-wait-online.service
.(we get this right for configurations using networkd, I believe)
Looking at networkmanager's provided service
etc/systemd/system/NetworkManager-wait-online.service
there'sa
WantedBy
in[Install]
that should be accounted for.Running this command before/after the included commit should
help see the difference:
(this is after:)
Now my services don't all complain when trying to run
just a tiny bit too early in my boot :).
If there's agreement this is the correct configuration
please 'backport' to at least 19.03.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)