mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
core: don't try to relabel mounts before we loaded the policy
This commit is contained in:
parent
07a062a793
commit
c4bfd1691f
Notes:
Lennart Poettering
2014-03-25 04:10:58 +01:00
Backport: bugfix
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user