From 164a6760ec0921afe1f043a6d08505636ca1bded Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 15 Jul 2025 14:24:23 +0200 Subject: [PATCH] enable lastlog2-import.service --- util-linux.spec | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/util-linux.spec b/util-linux.spec index c6ebe25..bab8288 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -489,24 +489,26 @@ find %{buildroot}%{_mandir}/man8 -regextype posix-egrep \ mv -v %{buildroot}/usr/sbin/* %{buildroot}/usr/bin/ %endif + %post %systemd_post fstrim.{service,timer} -### Enable after completing migration to lastlog2 -# %post -n liblastlog2 -# %systemd_post lastlog2-import.service -# -# %postun -n liblastlog2 -# %systemd_postun lastlog2-import.service -### +%post -n liblastlog2 +%systemd_post lastlog2-import.service + %preun %systemd_preun fstrim.{service,timer} + %postun %systemd_postun_with_restart fstrim.timer %systemd_postun fstrim.service +%postun -n liblastlog2 +%systemd_postun lastlog2-import.service + + # Please, keep uuidd running after installation! Note that systemd_post is # "systemctl preset" and it enable/disable service only. %post -n uuidd