]> err.no Git - systemd/commitdiff
mount,swap: properly add dependencies to logger if needed
authorLennart Poettering <lennart@poettering.net>
Tue, 15 Feb 2011 11:28:26 +0000 (12:28 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 15 Feb 2011 11:28:26 +0000 (12:28 +0100)
src/mount.c
src/swap.c

index 1f311cee41cf3f243d4b0c3cb703411956fd4e99..102d88b6e068846577f8b628613606fd837967a2 100644 (file)
@@ -466,6 +466,9 @@ static int mount_load(Unit *u) {
 
         /* This is a new unit? Then let's add in some extras */
         if (u->meta.load_state == UNIT_LOADED) {
+                if ((r = unit_add_exec_dependencies(u, &m->exec_context)) < 0)
+                        return r;
+
                 if (m->meta.fragment_path)
                         m->from_fragment = true;
 
index 4124f7585226b9771348e521412b22d34e24671c..db0614b9f9a488d8ba2620d638c724a7ef685074 100644 (file)
@@ -264,6 +264,8 @@ static int swap_load(Unit *u) {
                 return r;
 
         if (u->meta.load_state == UNIT_LOADED) {
+                if ((r = unit_add_exec_dependencies(u, &s->exec_context)) < 0)
+                        return r;
 
                 if (s->meta.fragment_path)
                         s->from_fragment = true;