From 629c41f904beaa484ad0f5a697d38bdec7082075 Mon Sep 17 00:00:00 2001 From: Boris Ranto Date: Fri, 23 Oct 2015 16:39:16 +0200 Subject: [PATCH] ceph.spec.in: We no longer need redhat-lsb-core Drop the redhat-lsb-core dependency as it is no longer necessary on fedora/rhel. The other two init scripts do not use redhat-lsb-core either. The init-ceph.in conditionally requires /lib/lsb/init-functions and does not use any of the functions defined in that file (at least not directly). The init-radosgw file includes /etc/rc.d/init.d/functions on non-debian platforms instead of /lib/lsb/init-functions file so it does not require redhat-lsb-core either. Signed-off-by: Boris Ranto --- ceph.spec.in | 3 --- src/init-rbdmap | 4 +++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ceph.spec.in b/ceph.spec.in index b93f42df2e7b6..38effeab8c2a0 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -227,9 +227,6 @@ Requires: python-requests %if 0%{?_with_systemd} %{?systemd_requires} %endif -%if 0%{?rhel} || 0%{?fedora} -Requires: redhat-lsb-core -%endif %if 0%{?suse_version} Requires(pre): pwdutils %endif diff --git a/src/init-rbdmap b/src/init-rbdmap index ff80bab63ae99..8650ed4cd3a5f 100755 --- a/src/init-rbdmap +++ b/src/init-rbdmap @@ -20,7 +20,9 @@ RBDMAPFILE="/etc/ceph/rbdmap" -. /lib/lsb/init-functions +if [ -e /lib/lsb/init-functions ]; then + . /lib/lsb/init-functions +fi do_map() { if [ ! -f "$RBDMAPFILE" ]; then -- 2.39.5