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 c4dfe8c..b3ee1b9 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) {