Hi,
I'm stuck on how to reset a service unit on upgrades; originally it was suggested to me on devel@ to use `fedora-release` but it doesn't work.
This is the current spec file and line in question: https://src.fedoraproject.org/rpms/util-linux/blob/master/f/util-linux.spec#...
My best guess at the moment is this should be %triggerpostun -- fedora-release-common < 32
Thanks,
Settled on this:
%triggerpostun -- util-linux < 2.35 %systemd_post fstrim.timer
But that still doesn't work, the unit is still disabled even though the vendor present is enabled.
I can't tell if this means it triggered or not:
D: %triggerpostun(util-linux-2.35.1-6.fc32.x86_64): scriptlet start fdio: 2 writes, 162 total bytes in 0.000024 secs D: %triggerpostun(util-linux-2.35.1-6.fc32.x86_64): execv(/bin/sh) pid 1404 D: Plugin: calling hook scriptlet_fork_post in selinux plugin D: setexecfilecon: (/bin/sh) + '[' 2 -eq 1 ']' D: %triggerpostun(util-linux-2.35.1-6.fc32.x86_64): waitpid(1404) rc 1404 status 0 D: --- h# 838 util-linux-2.34-3.fc31.x86_64 D: adding "util-linux" to Name index.
https://bugzilla.redhat.com/show_bug.cgi?id=1811506
-- Chris Murphy
packaging@lists.fedoraproject.org