]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
deb: use variable expansion to support systemd unit dir changes 64001/head
authorKefu Chai <tchaikov@gmail.com>
Wed, 18 Jun 2025 09:22:36 +0000 (17:22 +0800)
committerKefu Chai <tchaikov@gmail.com>
Wed, 18 Jun 2025 09:23:28 +0000 (17:23 +0800)
commit04324fa1ac1916b7a3db7928b26d4660c099d35c
treededbdfa257ae9da4d51ebb2ec72f335217ee9159
parent548e2520303c80195c5da2342801722fc61e2fe4
deb: use variable expansion to support systemd unit dir changes

Ubuntu changed the systemd unit directory location between releases:
- Jammy (22.04): /lib/systemd/system
- Noble (24.04): /usr/lib/systemd/system

To maintain compatibility across both versions, update .install files
to use brace expansion pattern {usr/,}lib/systemd/system/<service>.

This pattern works because dh_install uses bsd_glob() with GLOB_CSH
flags, which expands braces and matches files in both locations
depending on where CMakeLists.txt actually installed them.

Fixes installation issues when building packages on Noble while
maintaining backward compatibility with Jammy builds.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
13 files changed:
debian/ceph-base.install
debian/ceph-common.install
debian/ceph-exporter.install
debian/ceph-fuse.install
debian/ceph-immutable-object-cache.install
debian/ceph-mds.install
debian/ceph-mgr.install
debian/ceph-mon.install
debian/ceph-osd.install
debian/ceph-volume.install
debian/cephfs-mirror.install
debian/radosgw.install
debian/rbd-mirror.install