systemd: make enablement of n-m-wait-online.service follow n-m.service #76
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 is the approach used by systemd-networkd. So I believe it is safe, but I haven't tested this. You might consider this as a bug report, and if you are unable to accept it without me testing it, I can open an issue for it in the correct place.
I don't understand the logic that caused systemd-networkd to make the change -
systemd/systemd@9e49656
Instead, I am suggesting it for consistency, and because it seems to me this is the exact correct behaviour.
Because if you enable NetworkManager, and rely on it to configure your network devices, then network mounts will not start correctly at boot time unless you also enable NetworkManager-wait-online.service.
Enabling NetworkManager-wait-online.service does not cause unnecessary serialization of the boot process; it is only pulled in if something else (like a network mount) pulls in network-online.target.
I am suggesting this in response to reading this user support request: https://unix.stackexchange.com/questions/429604/fstab-not-automatically-mounting-smb-storage