]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
systemd services: fix installing ceph-volume@ 66670/head
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 Dec 2025 16:28:11 +0000 (17:28 +0100)
committerKefu Chai <k.chai@proxmox.com>
Tue, 6 Jan 2026 11:57:57 +0000 (19:57 +0800)
The ceph-volume@ service uses the @CMAKE_INSTALL_PREFIX@, so we cannot
just install it directly like the target units, but need to process it
like all other units that are referring to actual executables that
reside in build-target dependent paths.

Fixes: 68c72c5dff5 ("systemd: use CMake install prefix in templates")
Reported-by: Daniel Herzig <d.herzig@proxmox.com>
Reported-by: Aaron Lauterer <a.lauterer@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
systemd/CMakeLists.txt
systemd/ceph-volume@.service [deleted file]
systemd/ceph-volume@.service.in [new file with mode: 0644]

index 366bab4195df831976198c6c577c47288ff9f7f2..072730142bec08a4173ce7124ad94a49c144f8f1 100644 (file)
@@ -22,6 +22,7 @@ foreach(service
     ceph-osd@
     ceph-radosgw@
     ceph-rbd-mirror@
+    ceph-volume@
     ceph-immutable-object-cache@
     cephfs-mirror@
     rbdmap)
@@ -44,6 +45,5 @@ install(FILES
   ceph-radosgw.target
   ceph-rbd-mirror.target
   ceph-immutable-object-cache.target
-  ceph-volume@.service
   cephfs-mirror.target
   DESTINATION ${SYSTEMD_SYSTEM_UNIT_DIR})
diff --git a/systemd/ceph-volume@.service b/systemd/ceph-volume@.service
deleted file mode 100644 (file)
index 78bfc25..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-[Unit]
-Description=Ceph Volume activation: %i
-After=local-fs.target
-Wants=local-fs.target
-
-[Service]
-Type=oneshot
-KillMode=none
-Environment=CEPH_VOLUME_TIMEOUT=10000
-ExecStart=/bin/sh -c 'timeout $CEPH_VOLUME_TIMEOUT @CMAKE_INSTALL_PREFIX@/sbin/ceph-volume-systemd %i'
-TimeoutSec=0
-
-[Install]
-WantedBy=multi-user.target
diff --git a/systemd/ceph-volume@.service.in b/systemd/ceph-volume@.service.in
new file mode 100644 (file)
index 0000000..78bfc25
--- /dev/null
@@ -0,0 +1,14 @@
+[Unit]
+Description=Ceph Volume activation: %i
+After=local-fs.target
+Wants=local-fs.target
+
+[Service]
+Type=oneshot
+KillMode=none
+Environment=CEPH_VOLUME_TIMEOUT=10000
+ExecStart=/bin/sh -c 'timeout $CEPH_VOLUME_TIMEOUT @CMAKE_INSTALL_PREFIX@/sbin/ceph-volume-systemd %i'
+TimeoutSec=0
+
+[Install]
+WantedBy=multi-user.target