From c2c54a3b77e2edc33ac41bfab334e2e8872645b0 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Mon, 31 Aug 2015 10:52:13 +0000 Subject: [PATCH] - include udev rules, fixes missing /dev/disk/by-uuid symlinks --- mdadm.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mdadm.spec b/mdadm.spec index a21f251..3a0ef52 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -8,7 +8,7 @@ Summary: Tool for creating and maintaining software RAID devices Summary(pl.UTF-8): Narzędzie do tworzenia i obsługi programowych macierzy RAID Name: mdadm Version: 3.3.4 -Release: 1 +Release: 2 License: GPL v2+ Group: Base Source0: https://www.kernel.org/pub/linux/utils/raid/mdadm/%{name}-%{version}.tar.xz @@ -115,7 +115,7 @@ mv mdassemble regular-mdassemble %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},/etc/{rc.d/init.d,sysconfig,cron.d}} +install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},/etc/{rc.d/init.d,sysconfig,cron.d},/lib/udev/rules.d} %if %{with initrd} install -d $RPM_BUILD_ROOT%{_libdir}/initrd @@ -140,6 +140,8 @@ cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.d/mdadm-checkarray install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sbindir}/mdadm-checkarray +cp -p udev-md-raid-arrays.rules $RPM_BUILD_ROOT/lib/udev/rules.d/64-md-raid.rules + %clean rm -rf $RPM_BUILD_ROOT @@ -168,6 +170,7 @@ fi %attr(754,root,root) /etc/rc.d/init.d/%{name} %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} %config(noreplace) %attr(640,root,root) /etc/cron.d/mdadm-checkarray +/lib/udev/rules.d/64-md-raid.rules %if %{with initrd} %files initrd -- 2.46.0