Description of problem:

Clean installs have it enabled. But upgrades do not get reset.

Version-Release number of selected component (if applicable):


How reproducible:
Always


Steps to Reproduce:
1. Clean install F31
2. dnf system-upgrade
3.

Actual results:

$ systemctl status fstrim.timer
● fstrim.timer - Discard unused blocks once a week
     Loaded: loaded (/usr/lib/systemd/system/fstrim.timer; disabled; vendor preset: enabled)
     Active: inactive (dead)
    Trigger: n/a
   Triggers: ● fstrim.service
       Docs: man:fstrim



Expected results:

Should be enabled and running.


Additional info:

This appears to be working, vendor preset is enabled
/usr/lib/systemd/system-preset/90-default.preset:enable fstrim.timer


But this seems to not be resetting it to the vendor preset value.

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

Does it get the fedora release value from /etc/fedora-release? If so, does the order of upgrade matter? fedora-release is 32 by the time util-linux runs. I wonder if there's a way to mark this as >= 32 ?

Mar 08 21:46:58 localhost.localdomain dnf[671]:   Upgrading        : fedora-release-common-32-0.6.noarch                91/3292

Mar 08 21:49:01 localhost.localdomain dnf[671]:   Upgrading        : util-linux-2.35.1-4.fc32.x86_64                   744/3292


Comment 1


Chris Murphy



2020-03-09 04:52:25 UTC

Since it works on clean installs, freeze exception doesn't apply. It can be a "zero day" update following the lifting of freeze. System upgrades will get an updated version that enables this, once the update goes stable.



Source link

Write a comment:
*

Your email address will not be published.