update to 040
added patch to fix udevdir detection causing all udev rules to be skipped [release 040-1mamba;Tue Nov 11 2014]
This commit is contained in:
parent
8f94c4bcc2
commit
89473df6b9
13
dracut-040-fix-udevdir-detection.patch
Normal file
13
dracut-040-fix-udevdir-detection.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
--- dracut-040/dracut.sh.orig 2014-11-11 22:39:32.180194759 +0100
|
||||||
|
+++ dracut-040/dracut.sh 2014-11-11 22:41:23.392285954 +0100
|
||||||
|
@@ -1198,8 +1198,9 @@
|
||||||
|
[[ -d $udevdir ]] \
|
||||||
|
|| udevdir="$(pkg-config udev --variable=udevdir 2>/dev/null)"
|
||||||
|
if ! [[ -d "$udevdir" ]]; then
|
||||||
|
- [[ -d /lib/udev ]] && udevdir=/lib/udev
|
||||||
|
+ [[ -d /lib/udev ]] && udevdir=/lib/udev || {
|
||||||
|
[[ -d /usr/lib/udev ]] && udevdir=/usr/lib/udev
|
||||||
|
+ }
|
||||||
|
fi
|
||||||
|
|
||||||
|
[[ -d $systemdutildir ]] \
|
19
dracut.spec
19
dracut.spec
@ -1,6 +1,6 @@
|
|||||||
Name: dracut
|
Name: dracut
|
||||||
Version: 038
|
Version: 040
|
||||||
Release: 3mamba
|
Release: 1mamba
|
||||||
Summary: Generic, modular initramfs generation tool that can be used across various distributions
|
Summary: Generic, modular initramfs generation tool that can be used across various distributions
|
||||||
Group: System/Kernel and Hardware
|
Group: System/Kernel and Hardware
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -27,6 +27,7 @@ Patch14: dracut-027-kmod.patch
|
|||||||
Patch15: dracut-027-find-systemdutildir.patch
|
Patch15: dracut-027-find-systemdutildir.patch
|
||||||
Patch16: dracut-032-nfs-var-statd-sm.patch
|
Patch16: dracut-032-nfs-var-statd-sm.patch
|
||||||
Patch17: dracut-032-fix-libdirs.patch
|
Patch17: dracut-032-fix-libdirs.patch
|
||||||
|
Patch18: dracut-040-fix-udevdir-detection.patch
|
||||||
License: GPL
|
License: GPL
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
@ -117,12 +118,14 @@ This package conatins extra optional modules for dracut.
|
|||||||
%patch15 -p1
|
%patch15 -p1
|
||||||
%patch16 -p1
|
%patch16 -p1
|
||||||
#%patch17 -p1
|
#%patch17 -p1
|
||||||
|
%patch18 -p1
|
||||||
chmod +x modules.d/99squash-live/*
|
chmod +x modules.d/99squash-live/*
|
||||||
|
|
||||||
# remove *.orig files created by patched to prevent from being installed
|
# remove *.orig files created by patched to prevent from being installed
|
||||||
find . -name "*.orig" -exec rm -f {} \;
|
find . -name "*.orig" -exec rm -f {} \;
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
export CFLAGS="%{optflags} -Wformat"
|
||||||
%make \
|
%make \
|
||||||
sysconfdir=%{_sysconfdir} \
|
sysconfdir=%{_sysconfdir} \
|
||||||
systemdsystemunitdir=%{_unitdir}
|
systemdsystemunitdir=%{_unitdir}
|
||||||
@ -300,9 +303,9 @@ ln -s ../bin/mkinitrd %{buildroot}%{_sbindir}/mkinitrd
|
|||||||
%dir %{_prefix}/lib/kernel/install.d
|
%dir %{_prefix}/lib/kernel/install.d
|
||||||
%{_prefix}/lib/kernel/install.d/50-dracut.install
|
%{_prefix}/lib/kernel/install.d/50-dracut.install
|
||||||
%{_prefix}/lib/kernel/install.d/51-dracut-rescue.install
|
%{_prefix}/lib/kernel/install.d/51-dracut-rescue.install
|
||||||
/lib/systemd/system/dracut-*.service
|
%{_unitdir}/dracut-*.service
|
||||||
/lib/systemd/system/shutdown.target.wants/dracut-shutdown.service
|
%{_unitdir}/sysinit.target.wants/dracut-shutdown.service
|
||||||
/lib/systemd/system/initrd.target.wants/dracut-*.service
|
%{_unitdir}/initrd.target.wants/dracut-*.service
|
||||||
%{_datadir}/bash-completion/completions/dracut
|
%{_datadir}/bash-completion/completions/dracut
|
||||||
%{_datadir}/bash-completion/completions/lsinitrd
|
%{_datadir}/bash-completion/completions/lsinitrd
|
||||||
%{_datadir}/pixmaps/openmamba-logo.png
|
%{_datadir}/pixmaps/openmamba-logo.png
|
||||||
@ -340,9 +343,13 @@ ln -s ../bin/mkinitrd %{buildroot}%{_sbindir}/mkinitrd
|
|||||||
%{_prefix}/lib/dracut/modules.d/90multipath/*
|
%{_prefix}/lib/dracut/modules.d/90multipath/*
|
||||||
%dir %{_prefix}/lib/dracut/modules.d/97biosdevname
|
%dir %{_prefix}/lib/dracut/modules.d/97biosdevname
|
||||||
%{_prefix}/lib/dracut/modules.d/97biosdevname/*
|
%{_prefix}/lib/dracut/modules.d/97biosdevname/*
|
||||||
%doc NEWS README README.generic README.kernel README.modules TODO
|
#%doc NEWS README README.generic README.kernel README.modules TODO
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 11 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 040-1mamba
|
||||||
|
- update to 040
|
||||||
|
- added patch to fix udevdir detection causing all udev rules to be skipped
|
||||||
|
|
||||||
* Mon Aug 25 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 038-3mamba
|
* Mon Aug 25 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 038-3mamba
|
||||||
- also move to -extra multipath which causes disks locking during installation
|
- also move to -extra multipath which causes disks locking during installation
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user