summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-08-27 18:25:06 +0200
committerKay Sievers <kay@vrfy.org>2013-08-27 18:25:06 +0200
commitbd6d2963396061ed068c4c6c54d8104b59ba91dc (patch)
tree57f44faae7bb124b1858a7645ad9aa3972ab70ea
parent792d616391159f4fa992341bf264c9407e480c6d (diff)
log to kmsg when "debug" is used on the kernel command line
-rw-r--r--src/core/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 8a73ad3cc7..0178f10720 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -401,9 +401,14 @@ static int parse_proc_cmdline_word(const char *word) {
} else if (streq(word, "quiet"))
arg_show_status = false;
- else if (streq(word, "debug"))
+ else if (streq(word, "debug")) {
+ /* Log to kmsg, the journal socket will fill up before the
+ * journal is started and tools running during that time
+ * will block with every log message for for 60 seconds,
+ * before they give up. */
log_set_max_level(LOG_DEBUG);
- else if (!in_initrd()) {
+ log_set_target(LOG_TARGET_KMSG);
+ } else if (!in_initrd()) {
unsigned i;
/* SysV compatibility */