diff options
-rw-r--r-- | src/core/main.c | 3 |
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) { |