<p dir="ltr">Could you elaborate why Before=network.target is too late? </p>
<div class="gmail_quote">Am 06.06.2014 14:53 schrieb "Rusty Bird" <<a href="mailto:rustybird@openmailbox.org">rustybird@openmailbox.org</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<a href="https://bugs.freedesktop.org/show_bug.cgi?id=79600" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=79600</a><br>
---<br>
 Makefile.am                       |  1 +<br>
 man/systemd.special.xml           |  1 +<br>
 units/network-pre.target          | 11 +++++++++++<br>
 units/network.target              |  2 ++<br>
 units/<a href="http://systemd-networkd.service.in" target="_blank">systemd-networkd.service.in</a> |  3 ++-<br>
 5 files changed, 17 insertions(+), 1 deletion(-)<br>
 create mode 100644 units/network-pre.target<br>
<br>
diff --git a/Makefile.am b/Makefile.am<br>
index a2a01d0..79adc34 100644<br>
--- a/Makefile.am<br>
+++ b/Makefile.am<br>
@@ -413,6 +413,7 @@ dist_systemunit_DATA = \<br>
        units/remote-fs.target \<br>
        units/remote-fs-pre.target \<br>
        units/network.target \<br>
+       units/network-pre.target \<br>
        units/network-online.target \<br>
        units/nss-lookup.target \<br>
        units/nss-user-lookup.target \<br>
diff --git a/man/systemd.special.xml b/man/systemd.special.xml<br>
index 8ccccc2..7515cf8 100644<br>
--- a/man/systemd.special.xml<br>
+++ b/man/systemd.special.xml<br>
@@ -71,6 +71,7 @@<br>
                 <filename>local-fs-pre.target</filename>,<br>
                 <filename>multi-user.target</filename>,<br>
                 <filename>network.target</filename>,<br>
+                <filename>network-pre.target</filename>,<br>
                 <filename>network-online.target</filename>,<br>
                 <filename>nss-lookup.target</filename>,<br>
                 <filename>nss-user-lookup.target</filename>,<br>
diff --git a/units/network-pre.target b/units/network-pre.target<br>
new file mode 100644<br>
index 0000000..0c4a0ca<br>
--- /dev/null<br>
+++ b/units/network-pre.target<br>
@@ -0,0 +1,11 @@<br>
+#  This file is part of systemd.<br>
+#<br>
+#  systemd is free software; you can redistribute it and/or modify it<br>
+#  under the terms of the GNU Lesser General Public License as published by<br>
+#  the Free Software Foundation; either version 2.1 of the License, or<br>
+#  (at your option) any later version.<br>
+<br>
+[Unit]<br>
+Description=Network (Pre)<br>
+Documentation=man:systemd.special(7)<br>
+RefuseManualStart=yes<br>
diff --git a/units/network.target b/units/network.target<br>
index 65fc64b..6966035 100644<br>
--- a/units/network.target<br>
+++ b/units/network.target<br>
@@ -9,3 +9,5 @@<br>
 Description=Network<br>
 Documentation=man:systemd.special(7)<br>
 Documentation=<a href="http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget
+Requires=network-pre.target" target="_blank">http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget<br>
+Requires=network-pre.target</a><br>
+After=network-pre.target<br>
diff --git a/units/<a href="http://systemd-networkd.service.in" target="_blank">systemd-networkd.service.in</a> b/units/<a href="http://systemd-networkd.service.in" target="_blank">systemd-networkd.service.in</a><br>
index 373ac4e..8e4d213 100644<br>
--- a/units/<a href="http://systemd-networkd.service.in" target="_blank">systemd-networkd.service.in</a><br>
+++ b/units/<a href="http://systemd-networkd.service.in" target="_blank">systemd-networkd.service.in</a><br>
@@ -9,8 +9,9 @@<br>
 Description=Network Service<br>
 Documentation=man:systemd-networkd.service(8)<br>
 DefaultDependencies=no<br>
-After=dbus.service<br>
+After=dbus.service network-pre.target<br>
 Before=network.target<br>
+Requires=network-pre.target<br>
 Wants=network.target<br>
 ConditionCapability=CAP_NET_ADMIN<br>
<br>
--<br>
2.0.0<br>
<br>
<br>
<br>_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
<br></blockquote></div>