From 511ab9a97f4aaca68b12a8ba7eb094511fb58fbe Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 15 Feb 2021 16:35:53 -0600 Subject: [PATCH] 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 (cherry picked from commit 28582d544312657252c04c1f004409e44cff8c56) --- src/cephadm/cephadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 34f07fbd3d1f6..72d46adf84b2e 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -2288,7 +2288,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' -- 2.39.5