X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fmount.c;h=102d88b6e068846577f8b628613606fd837967a2;hp=aae9d982ae2e478ebd565a8e2bb7e47305e5f7aa;hb=a76fad090a6a1388fbaa609e8ca37e82223d2bd7;hpb=e0fa621b8b52da4d95bf5918eb998c9166e4bc7c diff --git a/src/mount.c b/src/mount.c index aae9d982a..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 @@ -372,6 +373,7 @@ static int mount_add_device_links(Mount *m) { } if (p->passno > 0 && + !mount_is_bind(p) && UNIT(m)->meta.manager->running_as == MANAGER_SYSTEM && !path_equal(m->where, "/")) { char *name; @@ -464,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;