Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Consider disabling dnf-makecache.timer #481

Open
jlebon opened this issue Apr 11, 2024 · 3 comments
Open

Consider disabling dnf-makecache.timer #481

jlebon opened this issue Apr 11, 2024 · 3 comments

Comments

@jlebon
Copy link
Contributor

jlebon commented Apr 11, 2024

See openshift/os#1476 (comment).

$ podman run -ti --rm quay.io/centos-bootc/centos-bootc:stream9 systemctl is-enabled dnf-makecache.timer
enabled

But cc @dcantrell for his thoughts on the suggestion there.

@travier
Copy link
Collaborator

travier commented Apr 12, 2024

Should we make this unit condition on !/run/ostree-booted?

@jlebon
Copy link
Contributor Author

jlebon commented Apr 12, 2024

Should we make this unit condition on !/run/ostree-booted?

It already is. The problem is more that it pulls in network-online.target, which is not recommended. We have a test in FCOS/RHCOS to make sure it doesn't inadvertently get activated with the default units.

@cgwalters
Copy link
Member

I think this is something to fix upstream in dnf, honestly. It should gracefully wait for network availability and not error out.

(Incidentally we have a related problem in rpm-ostree-countme.timer I've noticed the service failing, but the service shouldn't fail if networking isn't working)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants