chiark / gitweb /
main: honour rd.systemd.unit= only in the initrd, not the host
[elogind.git] / src / core / main.c
index c4dfe8cca69e5af9af287f134465b8b9f8b2a49d..b3ee1b9b889960589c7730cccb8687a88e1609d6 100644 (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) {