mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 03:40:07 +01:00
implement systemd network-online.target properly (bgo #728965)
Make network-online.target depend on NetworkManager-wait-online.service just as is done in Fedora. This makes network-online.target work with NetworkManager as described in systemd documentation. An alternative way would be to use a combination of setting Install.WantedBy to network-online.target and enabling the service by default. This alternative approach is currently used by systemd-networkd. https://bugzilla.gnome.org/show_bug.cgi?id=728965 Acked-By: Dan Williams <dcbw@redhat.com>
This commit is contained in:
parent
186e4dcf7a
commit
afd30f5f3b
1 changed files with 4 additions and 0 deletions
|
|
@ -25,6 +25,10 @@ service_DATA = $(service_in_files:.service.in=.service)
|
|||
|
||||
$(service_DATA): $(service_in_files) Makefile
|
||||
$(edit) $< >$@
|
||||
|
||||
install-exec-local:
|
||||
install -d $(DESTDIR)$(systemdsystemunitdir)/network-online.target.wants
|
||||
ln -s $(systemdsystemunitdir)/NetworkManager-wait-online.service $(DESTDIR)$(systemdsystemunitdir)/network-online.target.wants
|
||||
endif
|
||||
|
||||
examplesdir = $(docdir)/examples
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue