]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: record the image name to unit.image
authorSage Weil <sage@redhat.com>
Mon, 10 Feb 2020 17:57:16 +0000 (11:57 -0600)
committerSage Weil <sage@redhat.com>
Mon, 10 Feb 2020 17:57:16 +0000 (11:57 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/cephadm/cephadm

index 7d1ad9fbf25f14c8d008e801d7f5ffc529b9f81b..203cb7250a3d1fa9e82458075c141fc8d9a754a7 100755 (executable)
@@ -1239,6 +1239,10 @@ def deploy_daemon_units(fsid, uid, gid, daemon_type, daemon_id, c,
             f.write(' '.join(poststop.run_cmd()) + '\n')
         os.fchmod(f.fileno(), 0o600)
 
+    with open(data_dir + '/unit.image', 'w') as f:
+        f.write(c.image + '\n')
+        os.fchmod(f.fileno(), 0o600)
+
     # systemd
     install_base_units(fsid)
     unit = get_unit_file(fsid, uid, gid)