diff --git a/util-linux.spec b/util-linux.spec index 4e0e82f..7754a35 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -438,6 +438,15 @@ find $RPM_BUILD_ROOT%{_mandir}/man8 -regextype posix-egrep \ -regex ".*(linux32|linux64|s390|s390x|i386|ppc|ppc64|ppc32|sparc|sparc64|sparc32|sparc32bash|mips|mips64|mips32|ia64|x86_64|uname26)\.8.*" \ -printf "%{_mandir}/man8/%f*\n" >> %{name}.files +%post +%systemd_post fstrim.{service,timer} + +%preun +%systemd_preun fstrim.{service,timer} + +%postun +%systemd_postun_with_restart fstrim.timer +%systemd_postun fstrim.service %pre -n uuidd getent group uuidd >/dev/null || groupadd -r uuidd