main: honour rd.systemd.unit= only in the initrd, not the host

This commit is contained in:
Lennart Poettering 2014-06-19 16:14:56 +02:00
parent e34eee2c4f
commit ca05941b9a

View file

@ -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) {