From: Lennart Poettering Date: Mon, 24 Mar 2014 20:04:02 +0000 (+0100) Subject: core: don't try to relabel mounts before we loaded the policy X-Git-Tag: v212~25 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=c4bfd1691f4d3e26d6d7f34dbca941e119956e8a core: don't try to relabel mounts before we loaded the policy --- diff --git a/src/core/mount-setup.c b/src/core/mount-setup.c index 147333a6c..0a45b2477 100644 --- a/src/core/mount-setup.c +++ b/src/core/mount-setup.c @@ -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,