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: ses5-milestone5~115^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F9688%2Fhead;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 --- diff --git a/src/ceph-disk/ceph_disk/main.py b/src/ceph-disk/ceph_disk/main.py index 239bc50655f3..3593076a9d81 100755 --- a/src/ceph-disk/ceph_disk/main.py +++ b/src/ceph-disk/ceph_disk/main.py @@ -3267,8 +3267,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: