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:
@@ -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
|
||||
|
Reference in New Issue
Block a user