chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
07a062a
)
core: don't try to relabel mounts before we loaded the policy
author
Lennart Poettering
<lennart@poettering.net>
Mon, 24 Mar 2014 20:04:02 +0000
(21:04 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 24 Mar 2014 20:04:02 +0000
(21:04 +0100)
src/core/mount-setup.c
patch
|
blob
|
history
diff --git
a/src/core/mount-setup.c
b/src/core/mount-setup.c
index 147333a6c65e7b8d5c96e38cc4f82828f392b917..0a45b247743ca22a0a23db7c96e87d24e4998e86 100644
(file)
--- 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. */
/* 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,
log_debug("Mounting %s to %s of type %s with options %s.",
p->what,