<div dir="ltr"><div>Here is a patch which survives some basic testing.</div><div><br></div><div>The tricky part turns out to be cleaning up after a change to the .service file. The available helpers don't handle this properly. In order to remove the obsolete symbolic link /etc/systemd/system/network.target.wants/resolvconf.service on a system without systemctl installed I resorted to using rm, but I don't know how evil that is. Comments, please.</div>

<div><br></div><div>$ git diff debian/1.75..HEAD | cat -</div><div>diff --git a/debian/changelog b/debian/changelog</div><div>index 56d3e91..e2a1971 100644</div><div>--- a/debian/changelog</div><div>+++ b/debian/changelog</div>

<div>@@ -1,3 +1,10 @@</div><div>+resolvconf (1.76) unstable; urgency=medium</div><div>+</div><div>+  * resolvconf.service: Install into sysinit.target, not into</div><div>+    network.target (Closes: #749405)</div><div>+</div>

<div>+ -- Thomas Hood <<a href="mailto:jdthood@gmail.com">jdthood@gmail.com</a>>  Tue, 24 Jun 2014 11:50:33 +0200</div><div>+</div><div> resolvconf (1.75) unstable; urgency=low</div><div> </div><div>   * [49dedb8] Update man page re: "dns-nameserver" (Closes: 718021)</div>

<div>diff --git a/debian/postinst b/debian/postinst</div><div>index cb50a26..750e350 100755</div><div>--- a/debian/postinst</div><div>+++ b/debian/postinst</div><div>@@ -29,6 +29,18 @@ rm -f /etc/dhcp3/dhclient-enter-hooks.d/resolvconf</div>

<div> # We use dh_installinit with --no-start</div><div> #DEBHELPER#</div><div> </div><div>+### Clean up old symlinks from release 1.75: see #749405 ###</div><div>+case "$1" in</div><div>+  configure)</div><div>

+<span class="" style="white-space:pre">      </span>if [ "$2" = "1.75" ] ; then</div><div>+<span class="" style="white-space:pre">           </span>if which systemctl >/dev/null 2>&1 ; then</div><div>+<span class="" style="white-space:pre">                       </span>systemctl reenable resolvconf</div>

<div>+<span class="" style="white-space:pre">           </span>else</div><div>+<span class="" style="white-space:pre">                      </span>rm -f /etc/systemd/system/network.target.wants/resolvconf.service || :</div><div>+<span class="" style="white-space:pre">            </span>fi</div>

<div>+<span class="" style="white-space:pre">   </span>fi</div><div>+<span class="" style="white-space:pre">        </span>;;</div><div>+esac</div><div> </div><div> ### Create run-time directories and linkify ###</div><div> #</div>

<div>diff --git a/debian/resolvconf.service b/debian/resolvconf.service</div><div>index 2a7285d..94fde69 100644</div><div>--- a/debian/resolvconf.service</div><div>+++ b/debian/resolvconf.service</div><div>@@ -11,4 +11,4 @@ ExecStart=/sbin/resolvconf --enable-updates</div>

<div> ExecStop=/sbin/resolvconf --disable-updates</div><div> </div><div> [Install]</div><div>-WantedBy=network.target</div><div>+WantedBy=sysinit.target</div><div><br></div></div>