]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: fix selinux mount mis-indent 39490/head
authorSage Weil <sage@newdream.net>
Mon, 15 Feb 2021 22:35:53 +0000 (16:35 -0600)
committerSage Weil <sage@newdream.net>
Mon, 15 Feb 2021 22:35:53 +0000 (16:35 -0600)
We want to map this path even if we had to create the empty directory.

Signed-off-by: Sage Weil <sage@newdream.net>
src/cephadm/cephadm

index 8d5b4024cb7fc9c336c668c91be9c104b85cc0a0..f89b892401808321855108c4b5242f0b1fe20fff 100755 (executable)
@@ -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'