From 7fc3a9e12f7539eabcaf80d3960a588d81983710 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 11 Jun 2026 11:32:24 +0800 Subject: [PATCH] ceph.spec.in: require update-alternatives for the osd scriptlets ceph-osd-crimson and ceph-osd-classic call update-alternatives in their %posttrans and %preun scriptlets but don't depend on it. declare it as a scriptlet dependency so the binary is there when they run. Fixes: https://tracker.ceph.com/issues/77323 Signed-off-by: Kefu Chai --- ceph.spec.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index 9876fe5813b..4564703a38a 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1255,6 +1255,8 @@ Group: System/Filesystems %endif Requires: ceph-osd = %{_epoch_prefix}%{version}-%{release} Obsoletes: ceph-osd < %{_epoch_prefix}%{version}-%{release} +Requires(posttrans): %{_sbindir}/update-alternatives +Requires(preun): %{_sbindir}/update-alternatives %description osd-classic classic-osd is the object storage daemon for the Ceph distributed file system. It is responsible for storing objects on a local file system @@ -1275,6 +1277,8 @@ Requires: binutils Requires: c-ares%{?_isa} >= %{c_ares_min_version} %endif Requires: protobuf +Requires(posttrans): %{_sbindir}/update-alternatives +Requires(preun): %{_sbindir}/update-alternatives %description osd-crimson crimson-osd is the object storage daemon for the Ceph distributed file system. It is responsible for storing objects on a local file system -- 2.47.3