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