]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: order nspawn containers after network.target
authorLennart Poettering <lennart@poettering.net>
Mon, 11 May 2015 20:08:28 +0000 (22:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 May 2015 20:18:20 +0000 (22:18 +0200)
This way we know that any bridges and other user-created network devices
are in place, and can be properly added to the container.

In the long run this should be dropped, and replaced by direct calls
inside nspawn that cause the devices to be created when necessary.

units/systemd-nspawn@.service.in

index 6bfa55ac37562d30249950fdaaf8f8d3ef3de52c..9492c8c0f8b67bbb9d9d49da2b6d01220b123b71 100644 (file)
@@ -10,6 +10,7 @@ Description=Container %I
 Documentation=man:systemd-nspawn(1)
 PartOf=machines.target
 Before=machines.target
+After=network.target
 
 [Service]
 ExecStart=@bindir@/systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --network-veth --machine=%I