main: honour rd.systemd.unit= only in the initrd, not the host
This commit is contained in:
parent
e34eee2c4f
commit
ca05941b9a
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue