Disclaimer: the OSTree Native Container stuff (AKA CoreOS Layering) is kind of new so my answer may be wrong.
I don’t think removing the repo file matters much, but I guess it depends on how the client is used. IIUC the only time a yum repo gets contacted is if you are using package layering client side (i.e. if someone had ran rpm-ostree install pkg on the running system).
If your client systems are just pulling from the container registry and they don’t have anything else layered (other than the OSTree baked in the container) then those systems won’t attempt to contact the yum repos.
Yeah. Either you do actually have a client side package layer that you don’t know about OR maybe there is a bug here.
If you could get this down to a minimal reproducer (using FCOS and one of the examples like the one you linked to above maybe) then that would be a good foundation for filing a bug/issue.
When rebasing to quay.io/fedora-ostree-desktops/silverblue:37 it does its thing and then on reboot langpacks-en is layered, even though I didn’t explicitly add it. Removing all the repo files and trying an update results in an error.
However if I get rid of it with an rpm-ostree remove langpacks-en and then boot into that then an update says “No upgrade available” as expected.
Ok so I think the cause of the problem is rebasing to the quay.io silverblue image also layers langpacks-en, so I guess that’s the issue I should be reporting? (Which repo should I file this in?) Here’s the before and after:
For the custom image repo files: I was able to confirm that the right packages landed on my image and that removing the repo files didn’t affect upgrades, everything was coming from the image.