From: Michael Fritch Date: Fri, 5 Feb 2021 15:03:56 +0000 (-0700) Subject: cephadm: extend `--container-init` to the shell command X-Git-Tag: v17.1.0~3026^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F37764%2Fhead;p=ceph.git cephadm: extend `--container-init` to the shell command allow for the `--init` flag to be passed during `cephadm shell` Signed-off-by: Michael Fritch --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 2dc8bf7431ed..5feab6265d18 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -3052,6 +3052,8 @@ class CephContainer: # let OSD etc read block devs that haven't been chowned '--group-add=disk', ]) + if self.init: + cmd_args.append('--init') if self.envs: for env in self.envs: envs.extend(['-e', env])