centos-bootc icon indicating copy to clipboard operation
centos-bootc copied to clipboard

Consider disabling `dnf-makecache.timer`

Open jlebon opened this issue 1 year ago • 3 comments

See https://github.com/openshift/os/pull/1476#issuecomment-2050027990.

$ 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.

jlebon avatar Apr 11 '24 16:04 jlebon

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

travier avatar Apr 12 '24 13:04 travier

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.

jlebon avatar Apr 12 '24 13:04 jlebon

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)

cgwalters avatar Apr 12 '24 18:04 cgwalters