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 <branto@redhat.com>
(cherry picked from commit
15600572265bed397fbd80bdd2b7d83a0e9bd918)
Conflicts:
ceph.spec.in
Merge conflict because there were other commits that introduced systemd
& SUSE specific bits in the master which havent yet reached
hammer. Since this commit only removed redhat-lsb-core from *el distros
removing the specific lines
Requires: python-rbd = %{epoch}:%{version}-%{release}
Requires: python-cephfs = %{epoch}:%{version}-%{release}
Requires: python-requests
-%if 0%{?rhel} || 0%{?fedora}
-Requires: redhat-lsb-core
-%endif
# python-argparse is only needed in distros with Python 2.6 or lower
%if (0%{?rhel} && 0%{?rhel} <= 6) || (0%{?suse_version} && 0%{?suse_version} <= 1110)
Requires: python-argparse
DESC="RBD Mapping:"
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