[systemd-commits] src/core
Lennart Poettering
lennart at kemper.freedesktop.org
Mon Mar 24 13:04:43 PDT 2014
src/core/mount-setup.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit c4bfd1691f4d3e26d6d7f34dbca941e119956e8a
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Mar 24 21:04:02 2014 +0100
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 147333a..0a45b24 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,
More information about the systemd-commits
mailing list