chiark / gitweb /
core: don't try to relabel mounts before we loaded the policy
[elogind.git] / src / core / mount-setup.c
index 147333a6c65e7b8d5c96e38cc4f82828f392b917..0a45b247743ca22a0a23db7c96e87d24e4998e86 100644 (file)
@@ -172,7 +172,10 @@ 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_label(p->where, 0755);
+        if (relabel)
+                mkdir_p_label(p->where, 0755);
+        else
+                mkdir_p(p->where, 0755);
 
         log_debug("Mounting %s to %s of type %s with options %s.",
                   p->what,