]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: change ownership of init file to ceph:ceph 9688/head
authorShylesh Kumar <shmohan@redhat.com>
Thu, 7 Jul 2016 15:15:57 +0000 (20:45 +0530)
committerShylesh Kumar <shmohan@redhat.com>
Thu, 11 Aug 2016 11:58:04 +0000 (17:28 +0530)
Fixes: http://tracker.ceph.com/issues/16280
Signed-off-by: Shylesh Kumar <shmohan@redhat.com>
src/ceph-disk/ceph_disk/main.py

index 239bc50655f3c3fd974e690be45ba33dff6372ea..3593076a9d811cae1035784a8bdcf5ae1f393497 100755 (executable)
@@ -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: