From 27abbe8251a2614aab549a7a83f752e92d971a6a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 15 Feb 2011 12:28:26 +0100 Subject: mount,swap: properly add dependencies to logger if needed --- src/mount.c | 3 +++ src/swap.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/mount.c b/src/mount.c index 1f311cee41..102d88b6e0 100644 --- a/src/mount.c +++ b/src/mount.c @@ -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; diff --git a/src/swap.c b/src/swap.c index 4124f75852..db0614b9f9 100644 --- a/src/swap.c +++ b/src/swap.c @@ -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; -- cgit v1.2.3-54-g00ecf