summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-04-13 04:34:35 +0200
committerLennart Poettering <lennart@poettering.net>2011-04-13 04:34:35 +0200
commitd893269d9ffa6e72c60c9645ae88f83e826a14f2 (patch)
treecd9ddc74f53e29568a03363a7dc8a969abae2f39 /src
parente5a53dc74636ffa9de639733a0bef65f967c9ffa (diff)
mount: don't pull in stdio logger for root mount unit
Diffstat (limited to 'src')
-rw-r--r--src/mount.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mount.c b/src/mount.c
index 49bfd079a6..d7a300e796 100644
--- a/src/mount.c
+++ b/src/mount.c
@@ -65,7 +65,11 @@ static void mount_init(Unit *u) {
m->directory_mode = 0755;
exec_context_init(&m->exec_context);
- m->exec_context.std_output = EXEC_OUTPUT_KMSG;
+
+ /* The stdio/kmsg bridge socket is on /, in order to avoid a
+ * dep loop, don't use kmsg logging for -.mount */
+ if (!unit_has_name(u, "-.mount"))
+ 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