chiark / gitweb /
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 102d88b..88b54bb 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) {