]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
packaging: apply udev hack rule to RHEL
authorDerek Yarnell <derek@umiacs.umd.edu>
Mon, 27 Jan 2014 19:27:51 +0000 (12:27 -0700)
committerSage Weil <sage@inktank.com>
Mon, 27 Jan 2014 21:51:06 +0000 (13:51 -0800)
In the RPM spec file there is a test to deploy the uuid hack udev rules
for older udev operating systems. This includes CentOS and RHEL, but the
check currently only is for CentOS, causing RHEL clients to get a bogus
osd rules file.

Adjust the conditional to apply to RHEL as well as CentOS. (The %{rhel}
macro is defined in both platforms' redhat-rpm-config package.)

Fixes http://tracker.ceph.com/issues/7245

Signed-off-by: Ken Dreyer <ken.dreyer@inktank.com>
(cherry picked from commit 64a0b4fa563795bc22753940aa3a4a2946113109)

ceph.spec.in

index a6c3c7c3aa9c4cfc12625f8cc3dd15f78124c5a7..d66b77fbd02a871c9acd16787befa6df9afb5eb8 100644 (file)
@@ -318,7 +318,7 @@ chmod 0644 $RPM_BUILD_ROOT%{_docdir}/ceph/sample.fetch_config
 install -m 0644 -D udev/50-rbd.rules $RPM_BUILD_ROOT/lib/udev/rules.d/50-rbd.rules
 install -m 0644 -D udev/60-ceph-partuuid-workaround.rules $RPM_BUILD_ROOT/lib/udev/rules.d/60-ceph-partuuid-workaround.rules
 
-%if 0%{?centos}
+%if (0%{?rhel} || 0%{?rhel} < 7)
 install -m 0644 -D udev/95-ceph-osd-alt.rules $RPM_BUILD_ROOT/lib/udev/rules.d/95-ceph-osd.rules
 %else
 install -m 0644 -D udev/95-ceph-osd.rules $RPM_BUILD_ROOT/lib/udev/rules.d/95-ceph-osd.rules