chiark / gitweb /
Create /run/systemd as needed
[elogind.git] / src / login / logind.c
index a83d9443de2580edc85235d3c4706f1f5f2b08c7..f84938a7fd0e935c69dd3a382d034c1d01680d25 100644 (file)
@@ -1153,6 +1153,7 @@ int main(int argc, char *argv[]) {
          * existence of /run/systemd/seats/ to determine whether
          * logind is available, so please always make sure this check
          * stays in. */
+        mkdir_label("/run/systemd", 0755);
         mkdir_label("/run/systemd/seats", 0755);
         mkdir_label("/run/systemd/users", 0755);
         mkdir_label("/run/systemd/sessions", 0755);