From: Lennart Poettering Date: Thu, 19 Jun 2014 14:14:56 +0000 (+0200) Subject: main: honour rd.systemd.unit= only in the initrd, not the host X-Git-Tag: v215~297 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ca05941b9a6d7855bda2a7cb2cc16bbd3911acdd;p=elogind.git main: honour rd.systemd.unit= only in the initrd, not the host --- diff --git a/src/core/main.c b/src/core/main.c index c4dfe8cca..b3ee1b9b8 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -286,7 +286,8 @@ static int parse_proc_cmdline_item(const char *key, const char *value) { } else if (streq(key, "rd.systemd.unit") && value) { - return set_default_unit(value); + if (in_initrd()) + return set_default_unit(value); } else if (streq(key, "systemd.log_target") && value) {