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)
etc/init.d/ceph
-lib/systemd/system/ceph-crash.service
+{usr/,}lib/systemd/system/ceph-crash.service
usr/bin/ceph-crash
usr/bin/ceph-debugpack
usr/bin/ceph-run
etc/bash_completion.d/rados
etc/bash_completion.d/radosgw-admin
etc/bash_completion.d/rbd
-lib/systemd/system/ceph.target
-lib/systemd/system/rbdmap.service
+{usr/,}lib/systemd/system/ceph.target
+{usr/,}lib/systemd/system/rbdmap.service
usr/bin/ceph
usr/bin/ceph-authtool
usr/bin/ceph-conf
-lib/systemd/system/ceph-exporter*
+{usr/,}lib/systemd/system/ceph-exporter*
usr/bin/ceph-exporter
-lib/systemd/system/ceph-fuse*
+{usr/,}lib/systemd/system/ceph-fuse*
usr/bin/ceph-fuse
usr/sbin/mount.fuse.ceph sbin
usr/share/man/man8/ceph-fuse.8
-lib/systemd/system/ceph-immutable-object-cache*
+{usr/,}lib/systemd/system/ceph-immutable-object-cache*
usr/bin/ceph-immutable-object-cache
usr/share/man/man8/ceph-immutable-object-cache.8
-lib/systemd/system/ceph-mds*
+{usr/,}lib/systemd/system/ceph-mds*
usr/bin/ceph-mds
usr/share/man/man8/ceph-mds.8
-lib/systemd/system/ceph-mgr*
+{usr/,}lib/systemd/system/ceph-mgr*
usr/bin/ceph-mgr
usr/share/ceph/mgr/mgr_module.*
usr/share/ceph/mgr/mgr_util.*
-lib/systemd/system/ceph-mon*
+{usr/,}lib/systemd/system/ceph-mon*
usr/bin/ceph-mon
usr/bin/ceph-monstore-tool
usr/share/man/man8/ceph-mon.8
#! /usr/bin/dh-exec
-lib/systemd/system/ceph-osd*
+{usr/,}lib/systemd/system/ceph-osd*
usr/bin/ceph-bluestore-tool
usr/bin/ceph-clsinfo
usr/bin/ceph-erasure-code-tool
-lib/systemd/system/ceph-volume@.service
+{usr/,}lib/systemd/system/ceph-volume@.service
usr/lib/python*/dist-packages/ceph_volume/*
usr/lib/python*/dist-packages/ceph_volume-*
usr/sbin/ceph-volume
-lib/systemd/system/cephfs-mirror*
+{usr/,}lib/systemd/system/cephfs-mirror*
usr/bin/cephfs-mirror
usr/share/man/man8/cephfs-mirror.8
-lib/systemd/system/ceph-radosgw*
+{usr/,}lib/systemd/system/ceph-radosgw*
usr/bin/ceph-diff-sorted
usr/bin/radosgw
usr/bin/radosgw-es
-lib/systemd/system/ceph-rbd-mirror*
+{usr/,}lib/systemd/system/ceph-rbd-mirror*
usr/bin/rbd-mirror
usr/share/man/man8/rbd-mirror.8