From 8a67561220e47392a13df14a34cbd23b4c85629a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 31 Jul 2015 15:16:30 -0400 Subject: [PATCH] ceph.spec: install the new systemd-based udev rules from ddiss Signed-off-by: Sage Weil --- ceph.spec.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index 648d13336ac..bc72bc12b50 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -575,8 +575,12 @@ install -m 0644 -D udev/60-ceph-partuuid-workaround.rules $RPM_BUILD_ROOT%{_udev %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 +%if 0%{?_with_systemd} +install -m 0644 -D udev/95-ceph-osd.rules.systemd $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 %endif +%endif %if 0%{?rhel} >= 7 || 0%{?fedora} || 0%{?suse_version} mv $RPM_BUILD_ROOT/lib/udev/rules.d/95-ceph-osd.rules $RPM_BUILD_ROOT/usr/lib/udev/rules.d/95-ceph-osd.rules