Bug#766938: systemd: network-pre.target doesn't seem to be guaranteed to run before the network is up

Martin Pitt mpitt at debian.org
Mon Jan 26 12:20:45 GMT 2015


Control: tag -1 pending

Hey Christoph,

Christoph Anton Mitterer [2014-10-27  3:09 +0100]:
> Maybe I just miss something, but AFAIU, network-pre.target is not guaranteed
> to run before any networking is brougt up (which is the whole point of
> network-pre.target).
> 
> network.target has an After= on network-pre.target, but network.target itself
> isn't what brings the network up, right?

Correct, it's just the goal, which causes everything that actually
brings up the network to start before it.

> Instead ifup at .service does that which has a Before= on
> network.target.

That's part of it, but also /etc/init.d/networking, i. e.
the autogenerated networking.service.

I committed a fix for this:

  http://anonscm.debian.org/cgit/pkg-systemd/systemd.git/commit/?h=experimental&id=c90467c1b2909

This is fairly harmless on a standard installation as nothing hooks
into this target, but fairly important on systems which do rely on it,
so I'll also apply this to the master branch for Jessie.

Thanks,

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)



More information about the Pkg-systemd-maintainers mailing list