To
- start after networking.service (in order to make sure ifupdown has
created all the interfaces before dnsmasq tries to find them via the
'interfaces=' lines.
- drop the 'Requires=network.target' since it is not a *provider* of
that target
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
+SUBDIRS := PVE services
+
all:
- $(MAKE) -C PVE
+ set -e && for i in $(SUBDIRS); do $(MAKE) -C $$i; done
.PHONY: clean
clean:
$(MAKE) -C test $@
- $(MAKE) -C PVE $@
+ set -e && for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
.PHONY: test
test:
.PHONY: install
install:
- $(MAKE) -C PVE $@
+ set -e && for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
--- /dev/null
+# dnsmasq@.service comes with
+# Requires=network.target
+# After=network.target
+# Only the After entry makes sense as `network.target` is a passive rule and
+# `Require`ing it means that dnsmasq is the "provider" of that unit.
+# See https://systemd.io/NETWORK_ONLINE
+#
+# Additionally, we want ifupdown to have completed its setup, to make sure
+# the 'interface=' directives can find the required interfaces at startup.
+[Unit]
+Requires=
+After=networking.service
--- /dev/null
+SERVICEDIR=$(DESTDIR)/lib/systemd/system
+
+all:
+ @true
+
+.PHONY: install
+install:
+ install -d $(SERVICEDIR)
+ install -d $(SERVICEDIR)/dnsmasq@.service.d
+ install -t $(SERVICEDIR)/dnsmasq@.service.d -m 0644 00-dnsmasq-after-networking.conf
+
+.PHONY: clean
+clean:
+ @true