]> err.no Git - systemd/commitdiff
mount: make sure network mounts are ordered after network.target
authorLennart Poettering <lennart@poettering.net>
Mon, 21 Feb 2011 12:32:18 +0000 (13:32 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 21 Feb 2011 12:32:18 +0000 (13:32 +0100)
src/mount.c

index 102d88b6e068846577f8b628613606fd837967a2..88b54bbb2913a1057f03471c35e07c5cce3aa081 100644 (file)
@@ -306,7 +306,7 @@ static int mount_add_target_links(Mount *m) {
                 return r;
 
         if (after)
-                if ((r = unit_add_dependency_by_name(tu, UNIT_AFTER, after, NULL, true)) < 0)
+                if ((r = unit_add_dependency_by_name(UNIT(m), UNIT_AFTER, after, NULL, true)) < 0)
                         return r;
 
         if (automount && m->meta.manager->running_as == MANAGER_SYSTEM) {