Commit 27abbe82 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

mount,swap: properly add dependencies to logger if needed

parent 934da035
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment