]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
deb: use variable expansion to support systemd unit dir changes
authorKefu Chai <tchaikov@gmail.com>
Wed, 18 Jun 2025 09:22:36 +0000 (17:22 +0800)
committerCasey Bodley <cbodley@redhat.com>
Wed, 18 Jun 2025 16:42:39 +0000 (12:42 -0400)
commit6f1153746b876d26923ac2794b1ca6591c082a72
tree79233f877599abf46cb6885bf0c9559a53215334
parentc2f40443387e8d844f288af71f1cf12601afa347
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>
(cherry picked from commit 04324fa1ac1916b7a3db7928b26d4660c099d35c)
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