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:
Pavel Šimerda
2014-05-23 14:56:32 +02:00
parent 186e4dcf7a
commit afd30f5f3b

View File

@@ -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