From ca05941b9a6d7855bda2a7cb2cc16bbd3911acdd Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 19 Jun 2014 16:14:56 +0200 Subject: [PATCH] main: honour rd.systemd.unit= only in the initrd, not the host --- src/core/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.30.2