From b090e9da326a72068260682599c886c2d11f06b3 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Wed, 6 Jul 2016 10:13:03 +0200 Subject: [PATCH] rpm: create mount.ceph symlink in /sbin (SUSE only) Fixes: http://tracker.ceph.com/issues/16598 Signed-off-by: Nathan Cutler --- ceph.spec.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ceph.spec.in b/ceph.spec.in index c64cbd70d09..06efb65c026 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -708,10 +708,11 @@ install -m 0644 -D src/logrotate.conf %{buildroot}%{_sysconfdir}/logrotate.d/cep chmod 0644 %{buildroot}%{_docdir}/ceph/sample.ceph.conf chmod 0644 %{buildroot}%{_docdir}/ceph/sample.fetch_config -# firewall templates +# firewall templates and /sbin/mount.ceph symlink %if 0%{?suse_version} install -m 0644 -D etc/sysconfig/SuSEfirewall2.d/services/ceph-mon %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-mon install -m 0644 -D etc/sysconfig/SuSEfirewall2.d/services/ceph-osd-mds %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-osd-mds +ln -sf %{buildroot}%{_sbindir}/mount.ceph %{buildroot}/sbin/mount.ceph %endif # udev rules @@ -758,6 +759,9 @@ rm -rf %{buildroot} %{_sbindir}/ceph-create-keys %{_sbindir}/rcceph %{_sbindir}/mount.ceph +%if 0%{?suse_version} +/sbin/mount.ceph +%endif %dir %{_libexecdir}/ceph %{_libexecdir}/ceph/ceph_common.sh %dir %{_libdir}/rados-classes -- 2.39.5