-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
networkmanager: network-online --wants--> NetworkManager-wait-online #60954
networkmanager: network-online --wants--> NetworkManager-wait-online #60954
Conversation
Apply this suggestion to fix my NFS mount on boot: NixOS/nixpkgs#60954
@dtzWill I've just tried this on my 19.03 system that didn't run NetworkManager and had this very same issue. Now it runs network manager with this wait online target added and it works like a charm. So I'm very much in favor of pulling this in, not sure about @NixOS/backports though. Also, this same issue does exists with the regular |
I feel backporting should be fine, considering this is a bugfix, unless it is expected that adding this dependency could break setups. I'm not familiar enough with systemd to say for sure if this could cause issues for dependency chains. Though from what I know it feels alright. |
(requesting review from networkmanager maintainers) |
Beep boop, is lack of feedback approval or a request for more time? |
Welp, here we go. Hopefully it fixes more than it breaks overall. LMK if you have questions/problems. |
Thanks! 👍 |
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)