mirror of
https://github.com/ceph/ceph
synced 2025-03-31 16:25:56 +00:00
cephadm: fix selinux mount mis-indent
We want to map this path even if we had to create the empty directory. Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
a9a1b88694
commit
28582d5443
@ -2243,7 +2243,7 @@ def get_container_mounts(ctx, fsid, daemon_type, daemon_id,
|
||||
selinux_folder = '/var/lib/ceph/%s/selinux' % fsid
|
||||
if not os.path.exists(selinux_folder):
|
||||
os.makedirs(selinux_folder, mode=0o755)
|
||||
mounts[selinux_folder] = '/sys/fs/selinux:ro'
|
||||
mounts[selinux_folder] = '/sys/fs/selinux:ro'
|
||||
mounts['/run/lvm'] = '/run/lvm'
|
||||
mounts['/run/lock/lvm'] = '/run/lock/lvm'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user