1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 08:26:52 +03:00

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
Notes: Lennart Poettering 2014-03-25 04:10:58 +01:00
Backport: bugfix

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,