mount,swap: properly add dependencies to logger if needed

This commit is contained in:
Lennart Poettering 2011-02-15 12:28:26 +01:00
parent 934da03599
commit 27abbe8251
2 changed files with 5 additions and 0 deletions

View 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;

View 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;