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 <k.chai@proxmox.com>
%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
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