X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fmount.c;h=102d88b6e068846577f8b628613606fd837967a2;hb=4dba533a137486719fb385c45fc2ff75593fdf53;hp=d9f3da6c48e3c5d9621b31a3c338871192db431d;hpb=ff2e0f051431de2188561f4700950e229cedcb02;p=elogind.git diff --git a/src/mount.c b/src/mount.c index d9f3da6c4..102d88b6e 100644 --- a/src/mount.c +++ b/src/mount.c @@ -64,6 +64,7 @@ static void mount_init(Unit *u) { m->directory_mode = 0755; exec_context_init(&m->exec_context); + m->exec_context.std_output = EXEC_OUTPUT_KMSG; /* We need to make sure that /bin/mount is always called in * the same process group as us, so that the autofs kernel @@ -465,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;