#2053 has landed in Fedora 40.
This ends up breaking dnf completely when being used in a CI pipeline with an ostree system. We currently use dnf for building akmods in CI.
Note, that it says it should warn a user but exits with an operation aborted. From the docstring it does not sound like the intended behavior?