]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: extend `--container-init` to the shell command 37764/head
authorMichael Fritch <mfritch@suse.com>
Fri, 5 Feb 2021 15:03:56 +0000 (08:03 -0700)
committerMichael Fritch <mfritch@suse.com>
Fri, 5 Feb 2021 15:03:56 +0000 (08:03 -0700)
allow for the `--init` flag to be passed during `cephadm shell`

Signed-off-by: Michael Fritch <mfritch@suse.com>
src/cephadm/cephadm

index 2dc8bf7431ed8a06cd7973528297984b5feb860d..5feab6265d189f9ca777a1fdc7798abcd6878353 100755 (executable)
@@ -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])