Skip to content

Commit 6f11537

Browse files
tchaikovcbodley
authored andcommitted
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 <[email protected]> (cherry picked from commit 04324fa)
1 parent c2f4044 commit 6f11537

13 files changed

+14
-14
lines changed

debian/ceph-base.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
etc/init.d/ceph
2-
lib/systemd/system/ceph-crash.service
2+
{usr/,}lib/systemd/system/ceph-crash.service
33
usr/bin/ceph-crash
44
usr/bin/ceph-debugpack
55
usr/bin/ceph-run

debian/ceph-common.install

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ etc/bash_completion.d/ceph
44
etc/bash_completion.d/rados
55
etc/bash_completion.d/radosgw-admin
66
etc/bash_completion.d/rbd
7-
lib/systemd/system/ceph.target
8-
lib/systemd/system/rbdmap.service
7+
{usr/,}lib/systemd/system/ceph.target
8+
{usr/,}lib/systemd/system/rbdmap.service
99
usr/bin/ceph
1010
usr/bin/ceph-authtool
1111
usr/bin/ceph-conf

debian/ceph-exporter.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
lib/systemd/system/ceph-exporter*
1+
{usr/,}lib/systemd/system/ceph-exporter*
22
usr/bin/ceph-exporter

debian/ceph-fuse.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
lib/systemd/system/ceph-fuse*
1+
{usr/,}lib/systemd/system/ceph-fuse*
22
usr/bin/ceph-fuse
33
usr/sbin/mount.fuse.ceph sbin
44
usr/share/man/man8/ceph-fuse.8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
lib/systemd/system/ceph-immutable-object-cache*
1+
{usr/,}lib/systemd/system/ceph-immutable-object-cache*
22
usr/bin/ceph-immutable-object-cache
33
usr/share/man/man8/ceph-immutable-object-cache.8

debian/ceph-mds.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
lib/systemd/system/ceph-mds*
1+
{usr/,}lib/systemd/system/ceph-mds*
22
usr/bin/ceph-mds
33
usr/share/man/man8/ceph-mds.8

debian/ceph-mgr.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
lib/systemd/system/ceph-mgr*
1+
{usr/,}lib/systemd/system/ceph-mgr*
22
usr/bin/ceph-mgr
33
usr/share/ceph/mgr/mgr_module.*
44
usr/share/ceph/mgr/mgr_util.*

debian/ceph-mon.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
lib/systemd/system/ceph-mon*
1+
{usr/,}lib/systemd/system/ceph-mon*
22
usr/bin/ceph-mon
33
usr/bin/ceph-monstore-tool
44
usr/share/man/man8/ceph-mon.8

debian/ceph-osd.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /usr/bin/dh-exec
22

3-
lib/systemd/system/ceph-osd*
3+
{usr/,}lib/systemd/system/ceph-osd*
44
usr/bin/ceph-bluestore-tool
55
usr/bin/ceph-clsinfo
66
usr/bin/ceph-erasure-code-tool

debian/ceph-volume.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
lib/systemd/system/[email protected]
1+
{usr/,}lib/systemd/system/[email protected]
22
usr/lib/python*/dist-packages/ceph_volume/*
33
usr/lib/python*/dist-packages/ceph_volume-*
44
usr/sbin/ceph-volume

0 commit comments

Comments
 (0)