upstream patch to fix systemd-journald errors at boot
recreate initramfs in posttrans [release 040-6mamba;Fri Jan 30 2015]
This commit is contained in:
parent
198d348727
commit
3ad9c73353
18
dracut-040-add_systemd_journald_socket.patch
Normal file
18
dracut-040-add_systemd_journald_socket.patch
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
--- a/modules.d/98systemd/module-setup.sh
|
||||||
|
+++ b/modules.d/98systemd/module-setup.sh
|
||||||
|
@@ -83,6 +83,7 @@
|
||||||
|
$systemdsystemunitdir/systemd-udevd-kernel.socket \
|
||||||
|
$systemdsystemunitdir/systemd-ask-password-plymouth.path \
|
||||||
|
$systemdsystemunitdir/systemd-journald.socket \
|
||||||
|
+ $systemdsystemunitdir/systemd-journald-audit.socket \
|
||||||
|
$systemdsystemunitdir/systemd-ask-password-console.service \
|
||||||
|
$systemdsystemunitdir/systemd-modules-load.service \
|
||||||
|
$systemdsystemunitdir/systemd-halt.service \
|
||||||
|
@@ -105,6 +106,7 @@
|
||||||
|
$systemdsystemunitdir/sockets.target.wants/systemd-udevd-control.socket \
|
||||||
|
$systemdsystemunitdir/sockets.target.wants/systemd-udevd-kernel.socket \
|
||||||
|
$systemdsystemunitdir/sockets.target.wants/systemd-journald.socket \
|
||||||
|
+ $systemdsystemunitdir/sockets.target.wants/systemd-journald-audit.socket \
|
||||||
|
$systemdsystemunitdir/sockets.target.wants/systemd-journald-dev-log.socket \
|
||||||
|
$systemdsystemunitdir/sysinit.target.wants/systemd-udevd.service \
|
||||||
|
$systemdsystemunitdir/sysinit.target.wants/systemd-udev-trigger.service \
|
17
dracut.spec
17
dracut.spec
@ -1,6 +1,6 @@
|
|||||||
Name: dracut
|
Name: dracut
|
||||||
Version: 040
|
Version: 040
|
||||||
Release: 5mamba
|
Release: 6mamba
|
||||||
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
|
||||||
@ -22,6 +22,7 @@ Patch18: dracut-040-fix-udevdir-detection.patch
|
|||||||
Patch19: dracut-040-no-gzip-rsyncable.patch
|
Patch19: dracut-040-no-gzip-rsyncable.patch
|
||||||
Patch20: dracut-040-fix-autofs4-ipv6-modules.patch
|
Patch20: dracut-040-fix-autofs4-ipv6-modules.patch
|
||||||
Patch21: dracut-040-dmsetup_fix_path.patch
|
Patch21: dracut-040-dmsetup_fix_path.patch
|
||||||
|
Patch22: dracut-040-add_systemd_journald_socket.patch
|
||||||
License: GPL
|
License: GPL
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
@ -109,6 +110,7 @@ This package conatins extra optional modules for dracut.
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%patch20 -p1
|
%patch20 -p1
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
|
%patch22 -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
|
||||||
@ -137,6 +139,15 @@ ln -s ../bin/mkinitrd %{buildroot}%{_sbindir}/mkinitrd
|
|||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
|
%posttrans
|
||||||
|
if [ $1 -ge 1 ]; then
|
||||||
|
KVER=`uname -r`
|
||||||
|
INITRAMFS=/boot/initramfs-$KVER.img
|
||||||
|
[ -e $INITRAMFS -a ${_sysconfdir}/dracut.conf -nt $INITRAMFS ] || continue
|
||||||
|
mkinitrd $INITRAMFS $KVER -f -q
|
||||||
|
fi
|
||||||
|
:
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%config %{_sysconfdir}/dracut.conf
|
%config %{_sysconfdir}/dracut.conf
|
||||||
@ -336,6 +347,10 @@ ln -s ../bin/mkinitrd %{buildroot}%{_sbindir}/mkinitrd
|
|||||||
#%doc NEWS README README.generic README.kernel README.modules TODO
|
#%doc NEWS README README.generic README.kernel README.modules TODO
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 30 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 040-6mamba
|
||||||
|
- upstream patch to fix systemd-journald errors at boot
|
||||||
|
- recreate initramfs in posttrans
|
||||||
|
|
||||||
* Sat Jan 17 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 040-5mamba
|
* Sat Jan 17 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 040-5mamba
|
||||||
- added patch to fix path of dmsetup
|
- added patch to fix path of dmsetup
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user