From: Lennart Poettering Date: Mon, 21 Feb 2011 12:32:18 +0000 (+0100) Subject: mount: make sure network mounts are ordered after network.target X-Git-Tag: v19~42 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50483512b901aa216bc12bbe12dc99c1963d79fb;p=systemd mount: make sure network mounts are ordered after network.target --- diff --git a/src/mount.c b/src/mount.c index 102d88b6..88b54bbb 100644 --- a/src/mount.c +++ b/src/mount.c @@ -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) {