From: Shylesh Kumar Date: Thu, 7 Jul 2016 15:15:57 +0000 (+0530) Subject: ceph-disk: change ownership of init file to ceph:ceph X-Git-Tag: v10.2.4~16^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=79cf6330d67ad52af5690f4d4efd29aa2722acb2;p=ceph.git ceph-disk: change ownership of init file to ceph:ceph Fixes: http://tracker.ceph.com/issues/16280 Signed-off-by: Shylesh Kumar (cherry picked from commit aab9d03e1b50ba10a383663088400b9fabe306cb) --- diff --git a/src/ceph-disk/ceph_disk/main.py b/src/ceph-disk/ceph_disk/main.py index fdefe4f0d6e1..e94e791ed6be 100755 --- a/src/ceph-disk/ceph_disk/main.py +++ b/src/ceph-disk/ceph_disk/main.py @@ -3261,8 +3261,9 @@ def activate( init = init_get() LOG.debug('Marking with init system %s', init) - with file(os.path.join(path, init), 'w'): - pass + init_path = os.path.join(path, init) + with file(init_path, 'w'): + path_set_context(init_path) # remove markers for others, just in case. for other in INIT_SYSTEMS: