- add a udev rules file for device assembly (#429604)

This commit is contained in:
Bill Nottingham 2008-02-01 22:01:46 +00:00
parent 648686255b
commit 8ef1ac1e07
2 changed files with 13 additions and 0 deletions

6
mdadm.rules Normal file
View File

@ -0,0 +1,6 @@
# This file causes block devices with Linux RAID (mdadm) signatures to
# automatically cause mdadm to be run.
# See udev(8) for syntax
SUBSYSTEM=="block", ACTION=="add|change", ENV{ID_FS_TYPE}=="linux_raid*", \
RUN+="/sbin/mdadm --incremental $root/%k"

View File

@ -4,6 +4,7 @@ Version: 2.6.4
Release: 2%{?dist} Release: 2%{?dist}
Source: http://www.cse.unsw.edu.au/~neilb/source/mdadm/mdadm-%{version}.tgz Source: http://www.cse.unsw.edu.au/~neilb/source/mdadm/mdadm-%{version}.tgz
Source1: mdmonitor.init Source1: mdmonitor.init
Source2: mdadm.rules
Patch1: mdadm-2.5.2-s390-build.patch Patch1: mdadm-2.5.2-s390-build.patch
Patch2: mdadm-2.5.2-static.patch Patch2: mdadm-2.5.2-static.patch
Patch3: mdadm-2.2-nodiet.patch Patch3: mdadm-2.2-nodiet.patch
@ -40,6 +41,8 @@ make %{?_smp_mflags} CXFLAGS="$RPM_OPT_FLAGS" SYSCONFDIR="%{_sysconfdir}" MDASSE
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} BINDIR=/sbin install make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} BINDIR=/sbin install
install -Dp -m755 %{SOURCE1} $RPM_BUILD_ROOT/%{_initrddir}/mdmonitor install -Dp -m755 %{SOURCE1} $RPM_BUILD_ROOT/%{_initrddir}/mdmonitor
mkdir -p -m 755 $RPM_BUILD_ROOT/etc/udev/rules.d
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/udev/rules.d/70-mdadm.rules
mkdir -p -m 700 $RPM_BUILD_ROOT/var/run/mdadm mkdir -p -m 700 $RPM_BUILD_ROOT/var/run/mdadm
@ -73,12 +76,16 @@ fi
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc TODO ChangeLog mdadm.conf-example COPYING misc/* %doc TODO ChangeLog mdadm.conf-example COPYING misc/*
/etc/udev/rules.d/*
/sbin/* /sbin/*
%{_initrddir}/* %{_initrddir}/*
%{_mandir}/man*/md* %{_mandir}/man*/md*
%attr(0700,root,root) %dir /var/run/mdadm %attr(0700,root,root) %dir /var/run/mdadm
%changelog %changelog
* Fri Feb 1 2008 Bill Nottingham <notting@redht.com> - 2.6.4-3
- add a udev rules file for device assembly (#429604)
* Fri Jan 18 2008 Doug Ledford <dledford@redhat.com> - 2.6.4-2 * Fri Jan 18 2008 Doug Ledford <dledford@redhat.com> - 2.6.4-2
- Bump version and rebuild - Bump version and rebuild