core: don't try to relabel mounts before we loaded the policy

This commit is contained in:
Lennart Poettering
2014-03-24 21:04:02 +01:00
parent 07a062a793
commit c4bfd1691f
+4 -1
View 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,