From: Kefu Chai Date: Tue, 30 Jun 2020 08:14:16 +0000 (+0800) Subject: rpm: package crimson-osd in ceph-osd X-Git-Tag: v16.1.0~1852^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F35845%2Fhead;p=ceph.git rpm: package crimson-osd in ceph-osd in hope to simplify the enabling of crimson-osd. as we will use cephadm as the way for deploying crimson-osd in future. it's unlikely we will have classic osd and crimson osd co-located in the same system. so this is most simple way to enable crimson-osd with minimum efforts. Signed-off-by: Kefu Chai --- diff --git a/ceph.spec.in b/ceph.spec.in index 258fb613b0f..9f95c16c88b 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1199,6 +1199,12 @@ make DESTDIR=%{buildroot} install # we have dropped sysvinit bits rm -f %{buildroot}/%{_sysconfdir}/init.d/ceph popd + +%if 0%{with seastar} +# package crimson-osd with the name of ceph-osd +install -m 0755 %{buildroot}%{_bindir}/crimson-osd %{buildroot}%{_bindir}/ceph-osd +%endif + install -m 0644 -D src/etc-rbdmap %{buildroot}%{_sysconfdir}/ceph/rbdmap %if 0%{?fedora} || 0%{?rhel} install -m 0644 -D etc/sysconfig/ceph %{buildroot}%{_sysconfdir}/sysconfig/ceph