mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-23 00:06:05 +00:00
main: honour rd.systemd.unit= only in the initrd, not the host
This commit is contained in:
+2
-1
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user