From a2cd6222d2e1107ef8d80259a23bfd097c2b6f0d Mon Sep 17 00:00:00 2001 From: autodist Date: Sat, 30 Dec 2023 11:35:46 +0100 Subject: [PATCH] Release 216-4mamba --- systemd.spec | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/systemd.spec b/systemd.spec index fb226b0..a121110 100644 --- a/systemd.spec +++ b/systemd.spec @@ -23,7 +23,7 @@ Name: systemd Epoch: 2 Version: 216 -Release: 2mamba +Release: 4mamba Summary: A system and service manager compatible with SysV and LSB init scripts Group: System/Configuration Vendor: openmamba @@ -336,7 +336,6 @@ exit 0 %post -n udev if [ $1 -ge 1 ]; then - chkconfig --add udev-post udevadm hwdb --update fi @@ -355,14 +354,6 @@ groupadd nvram -g %{group_nvram} 2>/dev/null groupadd kvm -g %{group_kvm} 2>/dev/null : -%preun -n udev -if [ $1 -eq 0 ]; then -# erase - service udev-post stop - chkconfig --del udev-post -fi -: - %post -n libudev /sbin/ldconfig : @@ -371,6 +362,17 @@ fi /sbin/ldconfig : +%posttrans +if [ $1 -gt 1 ]; then + # remove broken left sysv5 symlink due to migrating services to systemd + find /etc/rc*.d/* -xtype l -delete + KVER=`uname -r` + INITRAMFS=/boot/initramfs-$KVER.img + [ -e $INITRAMFS -a ${_sysconfdir}/systemd/system.conf -nt $INITRAMFS ] || continue + mkinitrd $INITRAMFS $KVER -f +fi +: + %files %defattr(-,root,root) %{_sysconfdir}/init.d/README @@ -620,6 +622,13 @@ fi %{_datadir}/pkgconfig/udev.pc %changelog +* Wed Sep 10 2014 Silvan Calarco 216-4mamba +- remove broken sysv5 symlink left after migrating to systemd; fix mkinitrd trigger date check + +* Tue Sep 09 2014 Silvan Calarco 216-3mamba +- rebuild initramfs after install +- remove old udev-post init script activation in %post and %postun + * Sun Sep 07 2014 Silvan Calarco 216-2mamba - add group systemd-journal-remote