From: Kefu Chai Date: Thu, 11 Jun 2026 03:32:24 +0000 (+0800) Subject: ceph.spec.in: require update-alternatives for the osd scriptlets X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F69408%2Fhead;p=ceph.git 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 --- diff --git a/ceph.spec.in b/ceph.spec.in index 9876fe5813b6..4564703a38a5 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