From 5e102f2c8212a94b3a5221b5cf79eaafef693cc7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 24 Mar 2014 21:04:02 +0100 Subject: [PATCH] core: don't try to relabel mounts before we loaded the policy (cherry-picked from c4bfd1691f4d3e26d6d7f34dbca941e119956e8a) Resolves: #1147524 --- src/core/mount-setup.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/mount-setup.c b/src/core/mount-setup.c index 679f289..cff83d3 100644 --- a/src/core/mount-setup.c +++ b/src/core/mount-setup.c @@ -166,7 +166,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,