Using %triggerpostun with %systemd_post on upgrades

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

These two lines aren't doing what I want, which is to reset the
service to match the vendor preset on (major version) upgrades.

https://src.fedoraproject.org/rpms/util-linux/blob/master/f/util-linux.spec#_488

Should the trigger be on an installed subpackages rather than the
metapackage? fedora-release-common instead of fedora-release?

fedora-release-common-32-0.6.noarch contains two things:

a. /usr/lib/systemd/system-preset/90-default.preset
This contains:
enable fstrim.timer

b. ]$ cat /usr/lib/fedora-release
This contains:
Fedora release 32 (Thirty Two)

The idea of %triggerpostun is that the removal of fedora-release less
than 32 will trigger 'systemctl preset fstrim.timer'

But that doesn't happen.

https://bugzilla.redhat.com/show_bug.cgi?id=1811506

Thanks!

-- 
Chris Murphy
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux