chiark / gitweb /
main: honour rd.systemd.unit= only in the initrd, not the host
authorLennart Poettering <lennart@poettering.net>
Thu, 19 Jun 2014 14:14:56 +0000 (16:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 19 Jun 2014 14:33:01 +0000 (16:33 +0200)
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) {
 
 
         } 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) {
 
 
         } else if (streq(key, "systemd.log_target") && value) {