summaryrefslogtreecommitdiff
path: root/src/core/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-06-19 16:14:56 +0200
committerLennart Poettering <lennart@poettering.net>2014-06-19 16:33:01 +0200
commitca05941b9a6d7855bda2a7cb2cc16bbd3911acdd (patch)
treee00b2833e2ab58d40ff67605e0634954cd1b55a8 /src/core/main.c
parente34eee2c4f482078c2d6d257d3595e00df4d874e (diff)
main: honour rd.systemd.unit= only in the initrd, not the host
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index c4dfe8cca6..b3ee1b9b88 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) {