chiark / gitweb /
units: fix Documentation= tag in fsck units
[elogind.git] / src / core / mount-setup.c
index 56ce2ae71a01a72634020e2cfeeebafff69af573..cdbee1440827f99dcd0adc393f9bde773ffbbd4a 100644 (file)
@@ -39,6 +39,7 @@
 #include "strv.h"
 #include "mkdir.h"
 #include "path-util.h"
+#include "missing.h"
 
 #ifndef TTY_GID
 #define TTY_GID 5
@@ -130,7 +131,7 @@ static int mount_one(const MountPoint *p, bool relabel) {
 
         /* The access mode here doesn't really matter too much, since
          * the mounted file system will take precedence anyway. */
-        mkdir_p(p->where, 0755);
+        mkdir_p_label(p->where, 0755);
 
         log_debug("Mounting %s to %s of type %s with options %s.",
                   p->what,
@@ -404,8 +405,8 @@ int mount_setup(bool loaded_policy) {
         dev_setup();
 
         /* Create a few directories we always want around */
-        label_mkdir("/run/systemd", 0755);
-        label_mkdir("/run/systemd/system", 0755);
+        mkdir_label("/run/systemd", 0755);
+        mkdir_label("/run/systemd/system", 0755);
 
         return 0;
 }