Comment 5 for bug 1312836

Revision history for this message
Martin Pitt (pitti) wrote : Re: [systemd] Doesn't bring up interfaces from /etc/network/interfaces

There is no debian/rules diff in Ubuntu. But the autogenerated postinst diff between sid and utopic explains this, so I suppose our dh_installinit works in a way that an upstart job statically masks an init script:

@ -124,9 +143,14 @@

 # Automatically added by dh_installinit
 if [ -x "/etc/init.d/networking" ]; then
-…………………update-rc.d networking defaults >/dev/null || exit $?
+…………………if [ ! -e "/etc/init/networking.conf" ]; then
+………………………………………update-rc.d networking defaults >/dev/null
+…………………fi
 fi
 # End automatically added section
+# Automatically added by dh_installinit
+update-rc.d -f networking remove >/dev/null || exit $?
+# End automatically added section
 # Automatically added by dh_installdeb
 dpkg-maintscript-helper rm_conffile /etc/default/ifupdown 0.7~+ ifupdown -- "$@"
 # End automatically added section

That's in debhelper's merge log:

   - autoscripts/postinst-init*: Only call update-rc.d when there's no
      upstart job.