]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: require update-alternatives for the osd scriptlets 69408/head
authorKefu Chai <k.chai@proxmox.com>
Thu, 11 Jun 2026 03:32:24 +0000 (11:32 +0800)
committerKefu Chai <k.chai@proxmox.com>
Thu, 11 Jun 2026 05:32:25 +0000 (13:32 +0800)
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>
ceph.spec.in

index 9876fe5813b6042c6137b0cade4dfefa09db00d0..4564703a38a5c1e494ca370bd59f404101873264 100644 (file)
@@ -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