kairos-io / kairos

:penguin: The immutable Linux meta-distribution for edge Kubernetes.
https://kairos.io
Apache License 2.0
1.09k stars 97 forks source link

Fedora: disable dnf-makecache service #2664

Closed Itxaka closed 2 months ago

Itxaka commented 3 months ago

Kairos version: Fedora 40

CPU architecture, OS, and Version: all

Describe the bug /usr/lib/systemd/system/dnf-makecache.service is triggered by /usr/lib/systemd/system/dnf-makecache.timer Doesnt seem to make sense in a immutable system to have a service that may fail becuase the system is read only

To Reproduce boot fedora 40. Sometimes the service will start too soon and you will see that it fails

Expected behavior That service is disabled by default

Logs

Additional context You can disable via either masking it or by writing a file into /run/ostree-booted like fedora silverblue does so it doesnt run.

Itxaka commented 3 months ago

Seems like we disable it but we should disable the timer as well:

RUN systemctl disable dnf-makecache.service